-
Hello,
I am experiencing a critical issue where all of my .xml sitemap files are being served with an x-robots-tag: noindex HTTP header. This is causing Google Search Console to reject my sitemap.
I have performed extensive troubleshooting to isolate the cause, and the issue is not originating from my server. Here is a summary of the steps I have taken:
I have manually inspected my root .htaccess file. It contains only the standard WordPress rules and nothing that would add this header.
I have manually inspected my theme’s functions.php file (both the Blocksy child and parent themes). Neither file contains any code that adds an X-Robots-Tag header.
Given this comprehensive evidence, the header must be originating from RankMath since the sitemap is handled and generated by Rankmath plugin. Latest version is being installed currently and LiteSpeed Cache is not installed.
This is urgent and request your immediate support.
The ticket ‘Sitemap xml not getting indexed – x-robots-tag: noindex header’ is closed to new replies.