Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
Redirected pages should automatically be removed from your sitemap. Since it’s not updating, please try following the steps below to see if that 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/
If the issue persists, you may try excluding pages/posts form sitemap by following the URL below:
https://rankmath.com/kb/configure-sitemaps/#exclude-posts
Let us know how it goes. Looking forward to helping you.
Thank you.
Hi Sakib,
thank you!
Step 1 did solve it.
The sitemap was already excluded from WP Rocket.
But why did this happen at all? I’ve never seen it with Yoast. Will I have to check manually all the time?
Best regards
Michael
Hello,
If you’ve already performed #2, hopefully you won’t need to perform #1 on a regular basis. It means, if you’ve excluded your sitemap from caching already, your sitemap shouldn’t get cached again and it should work flawlessly.
Please make sure again that, you’ve followed #2. Excluded sitemap from your caching plugin, and also disabled Transient Caching mentioned in step #3.
Hope that helps, and 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.