Sitemap redirecting to homepage

  • Hello,

    I have launched a new website recently and switch over to Rank Math. But now I’m confused about the following:

    Google searches are still displaying older pages and content that doesn’t exist anymore. I guess that’s normal and they will go away after some time. So, in the meantime, whoever clicked on these links was  taken to a 404 error page. Sp, I thought it would be a good idea to set in the general settings of Rank Math for Fallback Behavior to “Redirect to Homepage”. I was happy with this, because I could see that, after that,  these old links will at least take the user to my homepage. I was using it correctly, right?

    Anyway, the problem is that, right after doing this I discovered that now, when typing my xml sitemap URL in the browser this will automatically redirect me to my homepage every single time. Which I guess is not a normal behavior at all and maybe even caused further problems with indexing of my site. So, I switch off the “redirect to Homepage” and now is set to Default 404, which is a pity because, as said, I was happy using it for the reason mentioned above
    But I wonder, how and why did this happen? Shouldn’t I be able to use the  “redirect to Homepage” and not affect the sitemap?   Maybe there’s something wrong with my sitemap. Can you please look into it? You can see the URL of my sitemap in the sensitive data input field.

    Any help will be much appreciated. 

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    Your sitemap file is working well for me. Here is a screenshot:
    Sitemap

    If this issue should persist, you can easily fix it by clearing your cache and then performing these steps:

    1. Head over to WordPress Dashboard > Settings > Permalinks

    Hit the save button once.

    2. Go to WordPress Dashboard > Rank Math > Sitemap Settings

    Hit the save button once.

    That should fix the issue and you can then use the redirect to homepage option.

    If it doesn’t, please do let us know so we can look at this further.

    It worked like a charm! Thank you so much for your help and for being so quick! So appreciated!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me 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 do 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Sitemap redirecting to homepage’ is closed to new replies.