-
Good afternoon. Stably I face the following problem: sitemap_index.xml flies off on my site. Can you tell me what this is related to?
-
Hello,
We apologize for the issue you are facing with your sitemap. If your
sitemap_index.xmlis not accessible or is returning a 404 error, there are a few steps you can take to troubleshoot this issue:-
Flush Permalinks: Sometimes, simply flushing the permalinks can resolve the issue. You can do this by going to the Permalinks page in your WordPress dashboard and clicking Save Changes without making any modifications.
-
Check Server Configuration: If you are using an Apache or Nginx server, ensure that the appropriate rewrite rules are added to your
.htaccessor Nginx configuration file, respectively. For Apache, you can add the following code:# 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 RulesFor Nginx, you can add:
# 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 -
Check for Plugin Conflicts: Sometimes, other plugins may conflict with Rank Math. You can use the Health Check plugin to identify any potential conflicts.
-
Server Resources: Ensure that your hosting package provides enough resources. You can check this by navigating to Tools → Site Health → Info in your WordPress dashboard and comparing your server settings with the recommended values.
If you continue to experience issues after trying these steps, 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:
Rank Math Sitemap Issues and Their Fixes » Rank MathHello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Can you please share your sitemap URL with us so that we can check the issue further for you?
Meanwhile, you can try to follow the steps below and see if that works for you.
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. 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.
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.
-
The ticket ‘sitemap’ is closed to new replies.