Exclude pages with the ‘noindex’ tag from sitemap

#429660
  • Resolved Nadav Harari
    Rank Math free

    Hi
    I wanted to know how I can exclude pages marked with the noindex tag from the XML sitemap.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

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

    The noindex pages should not be included in the sitemap. If you are still seeing them in the sitemap, it must be due to the caching of your sitemap. 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/

    That should fix the issue. Please let me know if that does not. We are here to assist.

    It seems that the video is not updated, as the sitemap settings interface looks different.
    I did exclude the sitemap cache from WProcket but the noindex URL is still on the sitemap

    Hello,

    The interface for our sitemap settings is still the same as the video and if you don’t see it like that it’s likely you are either using a very old version of the plugin or using a different one altogether.

    To further debug this please share one URL that has the noindex tag and it’s still showing in the sitemap so we can debug the issue further.

    Looking forward to hearing back from you.

    Here you go:
    here is the noindex URL:
    https://eastinsurancegroup.com/thank-you/

    And it still appears in the sitemap:
    https://eastinsurancegroup.com/page-sitemap2.xml

    Thanks

    Anas
    Rank Math business

    Hello,

    Please add this filter to your website:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Once done, clear your website cache, and check the sitemap.

    Hope this helps.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Exclude pages with the ‘noindex’ tag from sitemap’ is closed to new replies.