Hello,
We apologize for the issue you are facing with your sitemap. It seems like you might be encountering a problem that could be related to several factors. Here are some steps you can take to troubleshoot the 404 error:
-
Check Sitemap URL: Ensure that you are using the correct sitemap URL, which should typically be https://yourdomainname.com/sitemap_index.xml.
-
Validate Your Sitemap: You can validate your sitemap using the Validate XML Sitemap tool to check if there are any issues with its configuration.

-
Ensure Posts Are Set to Index: If all your posts are set to noindex, your sitemap may appear empty. Go to Rank Math SEO → Titles & Meta and ensure that the Index checkbox is enabled for your posts.

-
Check for Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can use the Health Check plugin to identify any conflicts.
-
Flush Cache: If you are using a caching plugin, try flushing the cache and excluding the sitemap from caching.
If these steps do not resolve the issue, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!
Sources:
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Thanks for responding,
I tried to do those steps, like
Flush the Sitemap
Exclude the Sitemap files in WP Rocket
go to permalinks and hit save without changes
changing 200 to 201
adding the code, but still i cant access this sitemap – https://djemilygracie.com.au/sitemap_index.xml
Hello,
In this case, please add this rewrite code to your NGINX config file (if not yet):
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
rewrite ^/([a-z]+)?-sitemap\.xsl$ /index.php?xsl=$1 last;
# END Nginx Rewrites for Rank Math Sitemaps
If you’re unsure about adding these rules, please contact your server administrator or hosting support, who can help you out.
Let us know how this goes.
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.