Incorrect http header content-type: “” (expected: “application/xml”)

#335097
  • Resolved Traveller Gateways
    Rank Math free

    Hello,

    I have created a website and then I have submitted the sitemap from RankMath but the sitemap shows HTTP error, I did all the steps that are mentioned on your site but the issue is still the same, when I test the sitemap its shows the following error. Can you help?
    Incorrect http header content-type: “” (expected: “application/xml”)

    My site address is: https://bonggateways.in/

Viewing 1 replies (of 1 total)
  • Azib Yaqoob
    Rank Math business

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    The post sitemap is loading properly on the website. However, I checked the robots.txt file and it does not have the sitemap URL.

    Please add this statement at the end of the robots.txt file:
    Sitemap: https://techtofeed.com/sitemap_index.xml

    You can follow this guide to edit the robots.txt generated by Rank Math: https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/

    Also, I tested the variations of sitemap using https://httpstatus.io/ and found that 3 variations are returning 200 status.

    Except for the preferred variation (which should return only a 200 status), all the non-preferred variations of the website should redirect to the preferred variation and return a 301 + 200 status.

    Please follow the steps in this link:
    https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#5-check-for-the-correct-version-of-the-sitemap and redirect to the correct variation.

    You can also get in touch with your web host regarding this.

    Once this is fixed, please clear your website’s cache, remove all the sitemaps from your Google Search Console account, and then submit only the main sitemap: /sitemap_index.xml.

    Further, give Google some time to crawl your website again and see if the issue gets fixed.

    Hope this helps.

    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 1 replies (of 1 total)

The ticket ‘Incorrect http header content-type: “” (expected: “application/xml”)’ is closed to new replies.