Hello,
Thank you for contacting Rank Math for help with the ‘Incorrect http header content-type’ sitemap error and sorry for the inconvenience this has caused you.
Please verify that you have submitted the correct sitemap URL. You should submit a sitemap with the structure https://domain.com/sitemap_index.xml
If the sitemap URL is correct, there may be a conflict with your theme or one of your plugins. Please follow this guide to check: https://rankmath.com/kb/check-plugin-conflicts/
If you are running W3 Total Cache along with Rank Math on your website, make sure you create another user agent group and add the ‘googlebot’ user agent to it.
If the above solutions don’t work, please include the following filter to your theme’s functions.php or rank-math.php file.
Hope that helps. Please let us know if you have questions.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.