Title: Sitemap validator error &#8211; Incorrect http header
Last modified: May 3, 2022

---

# Sitemap validator error – Incorrect http header

 *  Resolved [andrect](https://wordpress.org/support/users/andrect/)
 * (@andrect)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/)
 * How fix this?
    The error show in **sitemap.xml** Incorrect http header content-
   type: “text/html; charset=UTF-8” (expected: “application/xml”)

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

 *  [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * (@jeroenrotty)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15611624)
 * Hi [@andrect](https://wordpress.org/support/users/andrect/),
 * Thank you for reaching out.
 * If your sitemaps are served as HTML, then most often this is caused by a caching
   plugin that is caching them. Please exclude your sitemaps from being cached –
   see [https://yoast.com/help/exclude-sitemaps-from-cache/](https://yoast.com/help/exclude-sitemaps-from-cache/)
 *  Thread Starter [andrect](https://wordpress.org/support/users/andrect/)
 * (@andrect)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15611709)
 * Cache disable, error persist
    🙁
 *  [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * (@jeroenrotty)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15611806)
 * Hey,
 * If after disabling/clearing the cache the issue persists, I’d recommend doing
   a conflict check to see with what combination of plugins/themes the sitemaps 
   are switched from XML output to HTML. You can read more about doing a conflict
   check here: [https://yoast.com/help/how-to-check-for-plugin-conflicts/](https://yoast.com/help/how-to-check-for-plugin-conflicts/)
 *  Thread Starter [andrect](https://wordpress.org/support/users/andrect/)
 * (@andrect)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15611942)
 * Even the sitemap.xml not showing up has a problem for google?
    the sitemap_index.
   xml works fine
 *  [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * (@jeroenrotty)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15611973)
 * Hey,
 * I’m not completely sure what you mean. Let me clarify. When the Yoast SEO sitemaps
   are activated, we redirect the WordPress sitemap under /sitemap.xml to /sitemap_index.
   xml.
 * If the sitemap_index.xml works correctly, all is good and you can submit this
   to Google Search Console. See: [https://yoast.com/help/submit-sitemap-search-engines/](https://yoast.com/help/submit-sitemap-search-engines/)
 *  Thread Starter [andrect](https://wordpress.org/support/users/andrect/)
 * (@andrect)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15611981)
 * ok
    thx
 *  Thread Starter [andrect](https://wordpress.org/support/users/andrect/)
 * (@andrect)
 * [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15623107)
 * None of the proposals you indicated did not work.

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

The topic ‘Sitemap validator error – Incorrect http header’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [andrect](https://wordpress.org/support/users/andrect/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/sitemap-validator-error-incorrect-http-header/#post-15623107)
 * Status: resolved