Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
The Woocommerce pages like account, checkout, cart pages are set to noindex
by default as it’s recommended and these pages shouldn’t be indexed in the SERPs.
For blog pages, you can set noindex
meta tag to exclude from the sitemap. Or you may add the ID of the post/page in the Exclude Posts field at Rnak Math > Sitemap Settings > General.
How long does it usually take for the pages to disappear from the sitemaps?
It’s almost instant.
If your sitemap is not updating, the most possible reason can be that your sitemap is heavily cached. You can try following the steps below to see if that works for you in that case.
#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.
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.