Hello,
I apologize for the issue you are facing with fetching the sitemap on your website. Thank you for providing detailed information about the problem you are encountering.
Based on the details you shared, it seems like you have already taken several troubleshooting steps to resolve the “Could not fetch sitemap” error. Since you are still facing the issue after these efforts, I recommend following these additional steps to ensure the sitemap is set up correctly:
-
Validate Your Sitemap:
-
Ensure the Sitemap is Located in the Root Folder:
- Make sure that your sitemap is installed in the root folder of your WordPress installation. The correct format should be like this:
https://yourdomainname.com/sitemap_index.xml.
-
Ensure Your Posts Are Set to Index:
- Check if all your posts are set to index. You can do this by navigating to Rank Math SEO → Titles & Meta and enabling the Index checkbox in the Robots Meta settings.
If the issue persists after following these steps, please let us know, and we will further assist you in resolving the problem.
Best regards,
Sources:
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
If the KB guide from our Rankbot doesn’t work, 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. If the issue persists, access your website’s root directory via FTP or CPanel’s File Manager and delete any sitemap XML files you see there.
5. Lastly, remove all the sitemaps from your GSC and re-submit only the primary one (sitemap_index.xml).
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
I hope this email finds you well. I’m writing to seek assistance with an issue I’m experiencing regarding the XML sitemap on my website.
I’ve already followed the instructions provided in [mention where you received the instructions], but unfortunately, the issue persists. I’ve tried [list any troubleshooting steps you’ve taken], but none of them have resolved the problem.
Could you please provide further assistance in resolving this issue? Any additional troubleshooting steps or insights would be greatly appreciated.
Thank you for your attention to this matter. I look forward to your prompt response.
Sincerely,
surya
Hello,
It appears that Google was currently blocked by your server which is why they can’t access your sitemap, here’s a screenshot for your reference:

Please contact your hosting provider to ensure that your sitemap is whitelisted.
Looking forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.