Is Your Rank Math Sitemap Not Working? Here Is A Fix.

Last updated on May 15, 2022.

Rank Math is a really awesome WordPress SEO plugin that I use here on SEOSLY.

Some users of Rank Math report that their Rank Math sitemap returns a 404 page and that Google Search Console couldn’t fetch their Rank Math XML sitemap

Fortunately, this is not a serious problem and there is a very quick fix to it. 

SEO Newsletter from #SEOSLY

SEO Newsletter
Get FREE access to my four pro SEO audit tempates & receive weekly updates with the best SEO news & SEO tips.
Join 3000+ ambitious SEOs.

How To Fix The Rank Math Sitemap Error

I use Rank Math for my website and I really love this SEO plugin so I did my best to figure out what was happening when my XML sitemap (check my article on how to find the XML sitemap of a website) kept returning a 404 error.

The problem has to do with permalinks. Here is how to fix it:

  • Log in to the WordPress dashboard. 
  • Navigate to Settings > Permalinks.
  • Scroll down to the bottom and click Save Changes. Don’t make changes to the settings. Just click Save Changes

This will flush the permalink setting and fix your sitemap problem. Here are the screenshots if you are unsure what settings I’m talking about. 

Screenshot showing how to change permalinks setting in WordPress to fix the Rank Math sitemap error.
Go to Settings > Permalinks in your WordPress dashboard.
Screenshot showing how to change permalinks setting in WordPress to fix the Rank Math sitemap error.
Just click on Save Changes.

Your Rank Math XML sitemap is probably working OK now.

💡 TIP: I am able to monitor, measure, and improve the SEO visibility of the SEOSLY blog thanks to Semrush, an indispensable all-in-one SEO tool for every SEO specialist.

Check & Resubmit Your Sitemap In Google Search Console 

Now go to your XML sitemap to make sure that it’s working. 

Just type and Rank Math should automatically redirect to

In the case of my website redirects to 

Screenshot showing the redirect path from the default sitemap XML URL to the sitemap index URL

The sitemap index contains the XML sitemaps depending on your settings. Here is how my sitemap index looks like.

The XML sitemap of generated by Rank Math

If everything is OK, go to Google Search Console and do the following:

  • Navigate to Index > Sitemaps.
Sitemap settings in Google Search Console
  • Remove the maps which Google couldn’t fetch buy going to the map and then clicking Remove sitemap.
Removing an XML sitemap in Google Search Console
  • Paste the URL of your sitemap index and individual XML sitemaps under Add a new sitemap and hit SUBMIT
Submitting a new XML sitemap in Google Search Console
  • The status should now be green and say Success.  
The list of submitted XML sitemaps in Google Search Console with status "Success"

Hope this helped! If you are experiencing other issues with Rank Math sitemap, check other possible sitemap issues and fixes.


Members of SEOSLY Pro get access to Olga’s SEO audit video guide where she documents her 500+ step SEO audit process, Olga’s mini video SEO audits, SEO audit templates, pro SEO auditing tips, and much more!

Join SEOSLY Pro to become a technical SEO expert in no time.