-
Hello Rank Math team,
I’ve noticed that when Rank Math generates sitemap_index.xml, the HTTP response includes the following header:
makefile
Copier
Modifier
x-robots-tag: noindex
This behavior prevents Google Search Console from indexing the sitemap and triggers a “Submitted URL marked ‘noindex’” error.I’ve already confirmed:
The header is not injected by the server (Cloudflare or LiteSpeed)
Other static .xml files do not return this header
The issue resolves when Rank Math is disabled
Forcing a PHP override with header(‘X-Robots-Tag: index, follow’) only works partially, and is not a clean solution
My questions:
Why does Rank Math add this noindex header to sitemaps?Is there a setting to disable it natively in the plugin?
If not, is there a filter or action hook I can use to prevent this header from being added?
Thanks for your help — I’m using Rank Math on a news publication site and want to ensure SEO integrity for all sitemap outputs.
Best regards,
Alex Thoney
actualites.fr
The ticket ‘Disable x-robots-tag: noindex on sitemap_index.xml’ is closed to new replies.