In short
Ahrefs flags "3XX redirect in sitemap" when your XML sitemap lists URLs that redirect. Google says to list the URLs you want to see in search results, and redirecting URLs send mixed signals and waste crawl requests. Replace each redirecting URL with its final destination, or remove it if the destination is already listed.
A sitemap is your list of pages you want search engines to index. A redirecting URL isn't one of those pages; its destination is.
Common causes
| Cause | Fix |
|---|---|
| Sitemap uses HTTP or non-www URLs | Fix the site URL setting the sitemap is built from |
| Pages moved, but a static sitemap wasn't updated | Use an automatically generated sitemap |
| URLs without trailing slash while the site adds one | Match the site's URL format |
| Redirected pages still published in the CMS | Unpublish or exclude them |
How to fix it
WordPress: Yoast (/sitemap_index.xml) and Rank Math build sitemaps from published content and the Site Address. If redirects appear, check the URLs in Settings > General and remove redirected posts from the sitemap (or delete them).
Shopify: /sitemap.xml is automatic. Redirects usually mean a page or product was renamed; Shopify updates the sitemap, so recheck after a recrawl.
Webflow: Site settings > SEO > auto-generate sitemap. If you use a custom sitemap there, update it.
Wix: the sitemap is automatic; check that the old pages are deleted or hidden.
Custom builds: generate the sitemap from the same data as your routes at build time, listing only canonical, 200-status URLs.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Google Search Central, Build and submit a sitemap
sitemaps.org, Sitemaps XML format

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



