I don’t want sitemap.xml to redirect to sitemap_index.xml, what should I do?

#995335
  • Resolved neo wong
    Rank Math free

    I see that the .htaccess file does not have any redirection sitemap operation. Where is this redirection set?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, I’m sorry to hear that you’re facing this issue with your sitemap redirection. If your sitemap.xml is redirecting to sitemap_index.xml and you don’t want that to happen, there are a few things you can check:

    1. Check for Other Plugins: Sometimes, other SEO or caching plugins may create redirects. Ensure that no other plugins are causing this redirection.

    2. Check the Nginx Configuration (if applicable): If you’re using Nginx instead of Apache, the redirection might be set in the Nginx configuration file. You can check for any rewrite rules related to sitemaps there.

    3. Custom Code: If you or someone else has added custom code to your theme’s functions.php or any other file, it might be causing this redirection. Look for any custom redirect rules that might be affecting the sitemap.

    4. Server-Level Redirects: Sometimes, server-level redirects can be set up through your hosting provider’s control panel. Check with your hosting provider to see if there are any redirects configured at the server level.

    If you still can’t find the source of the redirection, please reply to this ticket with your site URL so we can assist you further. Thank you for raising this concern!

    Hello,

    Thank you so much for getting in touch.

    That sitemap path is currently redirected to ensure it won’t cause duplicate URLs when serving it to the search engine, causing unnecessary crawling efforts from the search engine.

    Having two sitemap systems on your website does sometimes cause conflict and duplication of URLs as we have stated above.

    The default behavior of our plugin is to redirect the sitemap.xml to its sitemap URL. Since you don’t want to do that, you can add a redirection rule in the Redirections module of our plugin to redirect the sitemap.xml to the homepage.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

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

The ticket ‘I don’t want sitemap.xml to redirect to sitemap_index.xml, what should I do?’ is closed to new replies.