Hello,
We apologize for the issue you are facing with your sitemap not working. If you’ve already tried adding rewrite rules and it’s still not functioning, there are a few steps you can take to troubleshoot the problem further:
-
Check if the Sitemap Loads: Go to _yourdomain.com?sitemap=1_
. If this loads your sitemap, it indicates that Rank Math can generate it but is having trouble rewriting it to sitemap_index.xml
.
-
Verify Rewrite Rules: Ensure that the rewrite rules you added are correct. For Nginx, the rules should look like this:
# 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
For Apache, it should be:
# START of Rank Math Sitemap Rewrite Rules
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
# END of Rank Math Sitemap Rewrite Rules
-
Flush Permalinks: Sometimes, flushing permalinks can resolve issues. Go to Settings → Permalinks in your WordPress admin area and click the “Save Changes” button without making any changes.

-
Check for Plugin Conflicts: Use the Health Check plugin to identify any potential conflicts with other plugins.
-
Review robots.txt: Ensure that your sitemap URL is not blocked by any rules in your robots.txt
file.
If these steps do not resolve the issue, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern!
I can try everything but not fixed
Hello,
Thank you for contacting Rank Math support.
We have already replied to your other ticket with the same concern, and please continue there to avoid duplication.
I’ll close this one so we can follow up on one thread for efficiency.
Looking forward to helping you.
Thank you.