3XX redirect in sitemap

#712753
  • Resolved 777 Highway
    Rank Math free

    Hello I am trying to figure this out.

    I changed some of the product names on my website and had to change some Permalink as well. as you know wordpress will automaticlly create a 301 redirect to the new Permalink so I didnt add them to the redirect section.

    After doing this I am getting an error from ahrefs saying 3XX redirect in sitemap and when I checked it is correct.

    I tried to regenerate the sitemaps however I was unsuccessful.

    the URL in the sitemap is still the old URL even though it has a 301 redirect

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, I’m sorry to hear about the issue you’re facing with the 3XX redirect in your sitemap. It seems that the changes you made to the product names and permalinks are not being reflected in the sitemap, even though WordPress should automatically create a 301 redirect to the new permalinks.

    To resolve this issue, you can manually add a 301 redirect from the old URLs to the new ones using Rank Math’s redirection feature. Here’s how you can do it:

    1. Go to your WordPress Dashboard and navigate to Rank Math SEO > Redirections.
    2. Create a new redirection by entering the old URL as the Source URL and the new URL as the Destination URL.
    3. Once done, click the Add Redirection button.

    By manually adding these redirects, you can ensure that the sitemap reflects the updated URLs and resolves the 3XX redirect issue.

    If you have a lot of URLs that need to be redirected, you can also add them in bulk using Rank Math’s redirection feature.

    I hope this helps! If you have any further questions or need assistance with this process, please feel free to ask.

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How to Fix the Submitted URL Seems to Be a “Soft 404” Error » Rank Math
    How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    How to Redirect Posts After Changing URLs » Rank Math

    777 Highway
    Rank Math free

    I dont think we understood each other. the url in question is already being redirected. the issue is that in the site map is still showing the old url and google is saying if this URL is permanently moved to a new URL why is it in the sitemap.

    so how can I update and regenerate the sitemaps

    Hello,

    Can you please follow these steps?
    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/

    That should fix the issue.

    Please let us know if that does not. We are here to assist.

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

The ticket ‘3XX redirect in sitemap’ is closed to new replies.