Exclude RankMath redirections from sitemap

#928720
  • I have some redirections in my RankMath -> Redirection that I’ve added manually. Now Rankmath adds these custom redirections to my sitemap. How can I remove them from sitemap?
    If I can accomplish it with custom codes please let me know.
    Thank you.
    Harry

Viewing 1 replies (of 1 total)
  • Hello,

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

    Please note that our plugin doesn’t remove redirected URLs from the sitemap automatically unless you delete those pages completely from your website or set them to Noindex.

    You can delete the pages or set them to Noindex and after that, follow the steps below to clear your sitemap cache:

    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/

    Let us know how it goes. Looking forward to helping you.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.