-
Subject: Sitemap X-Robots-Tag: noindex Header Being Set by Rank Math — Requesting Override or Fix
Hi Rank Math team,
I’m reaching out for help regarding an SEO indexing issue that appears to be caused by Rank Math’s handling of sitemap headers.
I manage three websites that all use Rank Math:
https://www.blackswangondolas.com
https://howtogrowatourcompany.com
https://www.drewsaintemarie.com
Recently, I discovered through both Google Search Console and live header tests (https://httpstatus.io) that all sitemap files for all three sites — including sitemap_index.xml, post-sitemap.xml, and page-sitemap.xml — are being served with the HTTP header:
makefile
Copy
Edit
X-Robots-Tag: noindex
This prevents Google from parsing the sitemaps at all and results in errors like:❌ Page cannot be indexed: Excluded by ‘noindex’ tag
After extensive troubleshooting, I contacted my host (WPX Hosting), and they confirmed that this header is not being injected by the server. Instead, they traced it back to Rank Math — and according to their support team, it appears that Rank Math sets this noindex tag by default on XML files. There are also no conflicting rules that should be not allowing it on our end.
Why This Matters:
While sitemaps aren’t meant to rank, Google still needs to crawl and process them, and this header completely prevents that.We’re seeing direct negative impact across all three sites — blog impressions dropping to zero, pages not getting indexed, and sitemaps being rejected.
Our Request:
We’re looking for any of the following:A setting inside Rank Math (even hidden or advanced) to disable the X-Robots-Tag: noindex header for sitemap XML files
A filter or code snippet we can add in functions.php to override this behavior
Confirmation on whether this is expected behavior and if so, how to cleanly remove it
If there’s an update or workaround you can recommend, we’d really appreciate it.
WPX pointed us to you, and we’re hoping to get this resolved without disabling Rank Math (we’re happy users otherwise!).
Thanks in advance for your help — and please let us know how to proceed!
Best regards,
Drew
(Owner, Black Swan Gondola / How to Grow a Tour Company / DrewSainteMarie)
The ticket ‘Sitemap showing no index for three sitesSubject: Sitemap X-Robots-Tag: noindex’ is closed to new replies.