-
Hi support,
My sitemap https://tuapppara.com/sitemap_index.xml is sending me back the following error:
Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)
(validated throught https://www.xml-sitemaps.com/validate-xml-sitemap.html).I have followed these instructions:
https://rankmath.com/kb/incorrect-http-header-content-type-sitemap-error/
https://rankmath.com/kb/exclude-sitemaps-from-caching/#wp-rocket
;
checked that https://tuapppara.com/sitemap_index.xml returns a 200 code but each post site map, like https://tuapppara.com/post-sitemap1.xml, returns an error;and I have finally dived into the following closed tickets and added a php hook:
https://support.rankmath.com/ticket/incorrect-http-header-content-type-expected-application-xml-3/
https://support.rankmath.com/ticket/incorrect-http-header-content-type-expected-application-xml-4/?view=all
https://support.rankmath.com/reply/435504/but my sitemap post index doesn´t work properly.
Would you think I am missing somehing else?
Thanks,
Luis
The ticket ‘Sitemap not working after following the guide’ is closed to new replies.