Hello,
Thank you for contacting Rank Math support. I’m sorry to hear that you are having trouble with your sitemap.
To troubleshoot this issue, please follow these steps:
- Reset your WordPress permalinks by going to WordPress Dashboard > Settings > Permalinks and clicking Save Changes without making any changes.
- Regenerate your sitemap by going to Rank Math > Sitemap Settings and changing the Link per Sitemap to 201 or anything else and then click Save Changes. You can change it later, this is just to regenerate your sitemap. You can follow this screencast: https://i.rankmath.com/pipRDp
- 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/
- To make sure your sitemap gets updated immediately, add the following code to your site:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
You can learn how to add this code to your website here: https://rankmath.com/kb/wordpress-hooks-actions-filters/
If none of these steps resolve the issue, please let us know and provide us with your WordPress login details and FTP access in the Sensitive Data section so we can take a closer look.
We hope this helps. Please let us know if you have any questions or concerns.
Hello,
Thanks work fine.
Cheers,
Alexandre
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.