Sitemap showing redirect urls

#654795
  • Resolved Anonymous
    Rank Math free

    Hi there,

    Our sitemap displays pages that are not published and are redirects – how to remove please? Details below.

    Thanks
    Stuart

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience this issue may have caused you.

    We have checked and can see that the URLs are redirecting. Since those URls are already redirecting, then they should be removed automatically from your page sitemap.

    For initial troubleshooting, please make sure that your sitemap is not getting cached. Please follow these steps:

    1. Ensure you’re using the latest version of your plugins/theme including the Rank Math plugin.

    2. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/xXXhDt

    3. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server: https://rankmath.com/kb/exclude-sitemaps-from-caching/

    If the issue still persists, please try adding this filter to your active theme’s functions.php file:

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

    Let us know how this goes.

    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 ‘Sitemap showing redirect urls’ is closed to new replies.