Hello @anilky,
Thank you for contacting us, and sorry for any inconvenience that might have been caused due to that.
Please try following the steps below to clear your sitemap cache and see if that resolves the issue:
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 from 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/
3. Apply the following filter to your site to disable the transients cache for the sitemap.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
For more details on the sitemap 404 issue, you can check this URL: https://rankmath.com/kb/sitemap-404-error/
Let us know how it goes. Looking forward to helping you.
Thread Starter
anilky
(@anilky)
Thanks. It’s working now.
Hello,
We are super happy that this resolved your issue.
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.