-
Hi Rank Math Team,
I need help with an issue affecting my site’s XML sitemap. My primary sitemap, generated by Rank Math (/sitemap_index.xml), is returning the following HTTP header:
makefile
Copy
Edit
X-Robots-Tag: noindex
I confirmed this using Chrome DevTools (see attached screenshot). This is causing concerns with Google Search Console and may be limiting the number of URLs Google discovers or indexes. For reference, Bing Webmaster Tools is reading the sitemap with no issue, but Google is more sensitive about sitemap headers and best practices.Here’s what I’ve already done to troubleshoot:
Checked Rank Math settings:
I don’t see any “noindex” option for XML sitemaps and haven’t enabled anything related to this in the plugin.Checked .htaccess and server config:
There are no rules in my .htaccess or server configuration that add or modify X-Robots-Tag for XML files.Checked security and cache plugins:
I use Wordfence and Litespeed Cache, but I’ve tried allowlisting /sitemap_index.xml and disabling plugins with no change. The noindex header persists even with the firewall in learning mode or temporarily disabled.Contacted my hosting provider (Hostinger):
Hostinger support says their server does not set this header and that my account has no forced HTTP header rules.Verified the issue is specific to Rank Math’s sitemap:
Other static XML files do not return the X-Robots-Tag: noindex header—only the dynamic sitemap generated by Rank Math.Questions:
Is there a hidden setting, filter, or function in Rank Math that could be adding this header?
Are there known compatibility issues with security or caching plugins that might trigger this behavior?
How can I force Rank Math’s sitemap output to avoid sending any X-Robots-Tag header at all (which is Google’s best practice for sitemaps)?
Can you provide a snippet or guidance for removing this header, if it’s being set by Rank Math or a conflict?
I’ve attached a screenshot from Chrome DevTools showing the network request and headers for /sitemap_index.xml for your reference.
Site: thejustifiable.com
WP Environment: Shared hosting (Hostinger), PHP 8.2.27
Plugins: Rank Math SEO, Wordfence, Litespeed Cache
Thanks in advance for your help!
I’m happy to run any diagnostics or provide admin access if needed.Juxhin Bregu
The ticket ‘XML Sitemap /sitemap_index.xml Returns X-Robots-Tag: noindex in HTTP Headers’ is closed to new replies.