Site Map is redirecting to Home Page URL

#295902
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

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

    Can you please install the following plugin on your site to disable the default WP sitemaps: https://wordpress.org/plugins/disable-wp-sitemaps/

    This should resolve the issue. Let us know if it doesn’t. We are here to assist.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi,
    I have installed the suggested plugin, still problem exists. Please check and advise. Sensitive data added.

    Regards

    Hello,

    To further troubleshoot the issue, please share your FTP login in the Sensitive Data section.

    Looking forward to helping you with this one.

    I have already added sensitive data for WordPress login. If you are asking for C-panel (Hosting account), then please let be know.

    Regards

    Chandni
    Rank Math free

    Hello,

    Thanks for the additional information.

    I looked at your sitemap and noticed, the content type is text/html, using the sitemap validator:https://www.xml-sitemaps.com/validate-xml-sitemap.html, and the postman tool.

    Please follow the steps below, to troubleshoot the issue:

    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/

    After that, I’d request you to remove all the sitemaps from GSC, and submit the primary sitemap (https://yourdomain.com/sitemap_index.xml). Please remember to replace “yourdomain.com” with the name of your domain.

    Please let us know how that goes. We would love to help you further.

    Thank you

    Hi,

    @Chandni
    Ssirohi
    I have done everything as suggested but still I am facing same problem.

    Please look into the issue.

    Regards

    Prabhat
    Rank Math agency

    Hello,

    I tested and the Text/HTML error pointed by my colleague is already fixed now.

    The URL of Rank Math’s index sitemap is /sitemap_index.xml. The sitemap.xml is redirecting to the homepage since you’ve set the Fallback Behaviour to the Homepage from Rank Math > General Settings > Redirections.

    However, to fix this, I’ve set up a simple redirection from sitemap.xml to sitemap_index.xml on your website (under Rank Math > Redirections) and the URL is now redirecting properly.

    Please clear your website and browser’s cache and see if the redirection is working properly on your end.

    Looking forward to hearing back from you.

    Thank you.

    Hi,
    Problem is fixed now, however, I am unable to understand which action has fixed this issue i.e. rewriting rules, .htaccess setting, removal and re-addition of sitemap in GSC etc.

    Please let me know so that I can fix similar issue if faced in future.

    Regards

    Prabhat
    Rank Math agency

    Hello,

    Regarding the redirection, there was no issue as our sitemap lies on the URL /sitemap_index.xml, and accessing it on a URL other than that would redirect to the Fallback Behaviour.

    To fix this, I created a redirection under Rank Math > Redirections, which redirected the URL /sitemap.xml to /sitemap_index.xml and the URL is now redirecting properly.

    So, if any bot looks for the sitemap on /sitemap.xml, they would be able to access Rank Math sitemaps.

    Here’s a screenshot of the redirection that I created:
    https://i.rankmath.com/FoydgQ

    And here’s how the redirection is working:
    https://i.rankmath.com/msdvL4

    However, all the steps that you performed are valid troubleshooting steps, that is, the sitemaps should be excluded from caching and after doing that, they should be removed and added again to GSC to allow Google to see a cache free sitemap.

    Hope this helps.

    Thank you.

    Thank You so much for clarification.

    Best Regards

    Prabhat
    Rank Math agency

    Hello,

    We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

The ticket ‘Site Map is redirecting to Home Page URL’ is closed to new replies.