Hello,
Thank you for contacting Rank Math support and we are sorry for any inconvenience this must have caused you.
To fix this error, please try the following steps:
Please follow the steps below:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. Apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
4. Remove all your sitemaps from your Google Search Console and submit only the primary one (https://domain.com/sitemap_index.xml
).
Let us know how that goes. Looking forward to helping you.
Hey,
thanks for your fast reply. It still does not work. I still get an Http error in GSC. Do you have other solutions? Thanks in advance.
Hello,
Thank you for getting back to us.
We can see that your sitemap is working correctly. Can you please try removing your sitemap from Google, waiting a few minutes, and then adding it back? This sometimes helps resolve the issue. You can also try adding your other sitemap variation, i.e. /?sitemap=1
.
Let us know if this worked or not. Thank you for your patience and cooperation
Heyy,
this does not work either…
thanks a lot.
Greetings
Hello,
Thank you for getting back to us.
We have checked your sitemap multiple times and we can see that it is working fine from our end. Here’s a screenshot for reference:

This might be an issue on Google’s end, in this case, we’d advise you to reach out to the Google Webmaster Support forum to see if they have any further advice on this.
We hope this helps you resolve the issue. If you have any other questions or concerns regarding Rank Math, please feel free to contact us again. We are always happy to help.
Thank you for choosing Rank Math!