Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
Can you please follow these steps?
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/
Let us know how it goes. Looking forward to helping you.
Thank you.
Hi,
We have followed all of the instruction above and still getting a 404.
Please advise accordingly.
Thank you
Hello,
I’ve checked your site and it seems like there’s a bit issue with redirection. Let me explain that for you.
Rank Math generates Sitemap on the fly when you enable that module. We rely on redirects enabled by your server software to accomplish that. If the Sitemap doesn’t work, you may have to add some rewrite rules to them in order to function sitemaps properly.
If you visit the /?sitemap=1 URI on your site (or any of the sitemaps under it, such as /page-sitemap.xml), you can see that the XML sitemap itself is working, but the linked XSL file is not – /main-sitemap.xsl returns a 404. We can only access that with the direct URI that looks like this: /?xsl=main.
In short, the issue is basically that /?xsl=main should be rewritten to /main-sitemap.xsl (the rewrite pattern looks like this: '/([a-z]+)?-?sitemap\.xsl$/' => '?xsl=$1').
These issues are most likely related to your server configuration. So, I suggest you to get in touch with your hosting provider regarding this issue.
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Got it! Thanks will get in touch with the today.
Hello,
Sure! Let us know how it goes.
Meanwhile, please do not hesitate to let us know if you need our assistance with anything else.
Thank 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.