my sitemap url is being redirected to my homepage

#513107
Viewing 2 replies - 1 through 2 (of 2 total)
  • I just went into “rotots.txt” in cPanel.

    I found this:

    User-agent: Googlebot
    Disallow: /nogooglebot/

    User-agent: *
    Allow: /

    Sitemap: https://ourbigescape.com//sitemap_index.xml

    I removed the 2nd / to now read:

    Sitemap: https://ourbigescape.com/sitemap_index.xml

    but it still goes to homepage.

    Hello,

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

    I checked your sitemap and it seems that the /?sitemap=1 is loading perfectly fine and the issue is only with the /sitemap_index.xml.

    The sitemap generates on the fly in Rank Math, when you enable that module. We rely on redirects enabled by your server software to accomplish that. As the Sitemap doesn’t work in your case, you may have to add some rewrite rules to them in order to function sitemaps properly.

    To rewrite /?sitemap=1 to sitemap_index.xml, please follow the guide I’ve shared below:
    https://rankmath.com/kb/sitemap-404-error/#nginx-apache-server

    If that seems to be complicated for you, please get in touch with your hosting provider to see if they can do that for you.

    However I can see that in your robots.txt, still there is an extra / in the sitemap URL. If you’ve already removed that one, then please try to clear the cache of your website.

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

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

The ticket ‘my sitemap url is being redirected to my homepage’ is closed to new replies.