No indexed page removal from sitemap

#490010
  • Resolved Natasha Shah
    Rank Math free

    I have applied no index to few pages of my website. But still those pages are appearing in the sitemap.xml file. Can you please guide us for a solution to remove such pages from sitemap file automatically.

Viewing 1 replies (of 1 total)
  • Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    noindexed pages should be automatically removed from the sitemap. The most possible reason can be that your sitemap is heavily cached.

    Can you please follow these steps?
    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. 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.

Viewing 1 replies (of 1 total)

The ticket ‘No indexed page removal from sitemap’ is closed to new replies.