-
I’m still experiencing an issue with Google Search Console refusing to index the following sitemap:
https://claresrecipes.com/category-sitemap.xmlGoogle reports that the URL contains the header:
makefile
Copier
Modifier
X-Robots-Tag: noindex
I have followed your previous advice and added this filter in my functions.php:php
Copier
Modifier
add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’ );
However, the issue persists.I also contacted my hosting provider (Cloudways), who confirmed that:
There are no Varnish, NGINX, or server-level rules injecting this header
The X-Robots-Tag: noindex header is coming from the application (WordPress)
I even disabled Rank Math temporarily and the header disappeared — which confirms that the plugin is still injecting it.
Could you please advise how to completely remove or override this X-Robots-Tag: noindex header from the sitemap?
Should I also try using this filter?php
Copier
Modifier
add_filter( ‘rank_math/sitemap/x_robots_tag’, ‘__return_false’ );
The ticket ‘Plugin support’ is closed to new replies.