Hello,
I’m sorry to hear that you are facing issues with your sitemap not updating correctly. Thank you for following the instructions to exclude sitemaps from caching and adding the rules to the .htaccess file and WP Rocket plugin.
Since you mentioned that you encountered an error while adding the code to the .htaccess file, could you please provide more details about the error message you received? This will help us troubleshoot the issue more effectively.
If you are still experiencing problems after following the provided steps, I recommend assigning this ticket to a human agent by clicking on the available button so that they can assist you further in resolving the sitemap update issue.
Thank you for your understanding and patience.
Sources:
How To Exclude Rank Math Sitemaps from Caching » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Now, it looks like completely disappeared the sitemap.
Hello,
Thanks for contacting us, and sorry for any inconvenience this might have caused you.
Please share your sitemap URL so we can troubleshoot this for you.
In the meantime, please follow the steps below to see if it works for you.
#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/
#3. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes.
Looking forward to helping you.
Thank you.
Thanks Adetayo,
works well now 🙂
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.