Invalid sitemap error

#26196
  • Resolved Desiree Silveira
    Rank Math free

    Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)

    Receiving the above error when I validate my sitemap. I have 3 sitemap sublinks and google crawls them successfully, but not the main sitemap link.

    Please review.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I cannot detect any issues when validating your sitemap index. Could you please clear your cache and test this again?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)

    Still getting this error, even after clearing my cache.

    Todd
    Rank Math free

    Hi Desiree,

    Thanks for getting in touch.

    Could you please check the following:
    1. Is the sitemap working fine in your browser? You can check that by going domain(.)com/sitemap_index.xml

    If the sitemap is working fine, you can try validating it on this link: https://www.xml-sitemaps.com/validate-xml-sitemap.html

    If the validation works, please move to the second point.

    2. Have you verified the correct version of your website on Google? Please check if you have verified the www (or non-www) and https (or http) version of your website. If there is a mismatch, please fix that.

    3. Finally, make sure you have cleared the cache and excluded Google bot from seeing a cached version of your sitemap.

    If you have followed these and you are able to view your sitemap without any problem, then Rank Math is outputting your sitemap correctly and the error must be coming from Google. You can try and use a 3rd party sitemap plugin to confirm. Just make sure you have disabled the Sitemap module of Rank Math in WordPress Dashboard > Rank Math > Dashboard when using a 3rd party sitemap plugin.

    If the other plugin works, please do let us know.

    Thank you.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Invalid sitemap error’ is closed to new replies.