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

Last updated on June 13, 2021.

Rank Math is a really awesome WordPress SEO plugin which 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. 

⚡ Check my guide of how to find the sitemap of a website in 7 quick and easy ways.

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 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 ands 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.

Check & Resubmit Your Sitemap In Google Search Console 

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

Just type yourdomain.com/sitemap.xml and Rank Math should automatically redirect to yourdomain.com/sitemap_index.xml

In the case of my website https://seosly.com/sitemap.xml redirects to https://seosly.com/sitemap_index.xml. 

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 seosly.com 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.


Did you fix your Rank Math sitemap error? If you did, share this tutorials with other Rank Math users so that they can also get their sitemaps in place.

Do you know any other interesting Rank Math sitemap tips or tricks? Feel free to share them in the comments and I’ll be happy to update this guide.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *