On this page
What this issue is
An XML sitemap is a file (usually /sitemap.xml) that lists the pages you want search engines to crawl and index. A redirect is when a URL sends visitors and bots on to a different URL. This issue happens when a sitemap entry is one of those redirecting URLs, rather than the page it points to.
Why it costs you leads or sales
- Sitemap readCrawler fetches /sitemap.xml
- Old URL listedEntry returns 301
- Extra hopCrawl effort spent on redirect
- Final pageIndexed later, or not at all
The sitemap points at an old URL, so the crawler needs an extra hop to reach the real page.
How to check if your site has it
Open your sitemap
Visit https://yourdomain.com/sitemap.xml. If it is an index, open each child sitemap.
Check Search Console
In Google Search Console, open Sitemaps and check the status. Then open Indexing > Pages and look for the reason Page with redirect.
Crawl the sitemap in list mode
In a crawler such as Screaming Frog, choose Mode > List, upload or enter the sitemap URL, and filter the Response Codes tab for 3xx. Do not let it follow redirects if you want to see them listed.
Spot check with curl
Run the command below on a few entries. Anything other than 200 needs fixing.
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://example.com/old-page/How to fix it
Use a plugin-generated sitemap
Yoast SEO, Rank Math and the built-in WordPress sitemap build the file automatically. Avoid static sitemap files uploaded by hand.
Fix the source of the old URL
Check Settings > General so the WordPress Address and Site Address use https and your preferred www or non-www version.
Clear caches
Purge your caching plugin and any CDN so the sitemap is rebuilt, then reopen /sitemap_index.xml (Yoast) or /wp-sitemap.xml.
Know what is automatic
Shopify generates /sitemap.xml itself and you cannot edit it directly.
Remove stale redirects
Under Online Store > Navigation > URL Redirects, check whether a redirect exists from a URL that is still live. Delete it so the live page is served directly.
Check the primary domain
In Settings > Domains, make sure the primary domain is the one you want listed.
Check the sitemap setting
In Site settings > SEO, confirm auto-generate sitemap is on, or review your custom sitemap if you pasted one.
Match the default domain
Under Hosting, set the default domain to the version you want so the sitemap uses it, then republish.
Review 301 redirects
In Hosting > 301 redirects, remove rules that point from pages that still exist.
Let Wix build it
Wix creates the sitemap automatically. You manage it through SEO tools rather than editing the file.
Check URL redirects
Use the Redirect Manager in SEO tools to remove redirects from live pages, and set your primary domain.
Confirm the primary domain
In Settings > Domains, set the primary domain so the sitemap uses it.
Clean URL mappings
Under Settings > Developer Tools > URL Mappings, remove mappings whose source URL is still a live page.
Generate the sitemap from canonical URLs
Build it from the same data that produces your canonical tags, using the final https URL, host and trailing slash style.
Filter out non-200 pages
Exclude redirected, noindex and 404 pages when the file is generated, and update the lastmod date only when content changes.
Regenerate on deploy
Rebuild the sitemap in your deploy or publish step so it never goes stale.
Resubmit in Google Search Console
Open Sitemaps, enter the sitemap path and submit it again so Google rereads it.
Resubmit in Bing Webmaster Tools
Open Sitemaps and submit the same file.
Before
- Lists http://example.com/old-page
- Returns 301 to https://www.example.com/new-page/
- Crawler wastes a hop
After
- Lists https://www.example.com/new-page/
- Returns 200 directly
- Matches the canonical tag
How to confirm it's fixed
- Re-crawl the sitemap in list mode: every URL returns 200
- No entry uses http:// or the wrong www version
- Every entry's canonical tag matches the listed URL
- Search Console shows the sitemap as Success with the expected page count
- Redirect-related messages in Indexing > Pages trend down over the following weeks
How to prevent it happening again
- Generate the sitemap automatically instead of editing it by hand
- After every migration, rename or URL change, regenerate and recrawl the sitemap
- Update internal links when you add a redirect (see SEO-089)
- Run a scheduled crawl monthly and filter for 3xx in sitemap URLs
- Check Search Console Sitemaps and Pages reports after big releases
How FunnelGuard handles this
Frequently asked questions
Questions people ask
Why does Search Console say my sitemap URLs redirect?
It means entries in your sitemap return a 3xx status instead of 200. This usually happens after a URL change, a switch to https, or a www and non-www mismatch. Regenerate the sitemap with the final URLs and resubmit it.
Is it bad to have redirecting URLs in my sitemap?
It is not a penalty, but it is poor practice. It wastes crawl effort and sends mixed signals about which URL you prefer. The effect is small on tiny sites and more noticeable on large ones or after migrations.
How do I find redirecting URLs in my sitemap?
Crawl the sitemap in list mode with a tool such as Screaming Frog and filter the response codes for 3xx. You can also test individual URLs with curl and look at the status code. Search Console may list them under pages with a redirect.
Should I remove the redirect or fix the sitemap?
Fix the sitemap and keep the redirect. The redirect still helps old links and bookmarks reach the right page. The sitemap should list only the final destination.
Should a sitemap contain http or https URLs?
It should list the exact URL version you want indexed, which for most sites is https with your chosen www or non-www host. Listing http URLs that redirect to https is a common cause of this issue.
How do I fix redirects in a Shopify sitemap?
You cannot edit Shopify's sitemap directly. Instead, delete URL redirects whose source page is still live under Online Store > Navigation > URL Redirects, and check your primary domain in Settings > Domains.
Does FunnelGuard check my sitemap for redirects?
No. FunnelGuard does not check this yet. It monitors your funnels, tracking and test leads, so use a crawler or Search Console for sitemap checks.
How often should I resubmit my sitemap?
You do not need to resubmit on a schedule if the sitemap URL stays the same, since search engines recheck it. Resubmit after a major cleanup or migration to prompt a fresh read.
Related issues
- SEO-089Internal links point to redirecting URLsFix guide
- SEO-081Redirect chains of 3+ hopsFix guide
- SEO-083http not redirecting to httpsFix guide
- SEO-085302 temporary redirects used for permanent movesFix guide
- SEO-088Mass redirect of all old URLs to the home page (soft 404s)Fix guide
- SEO-084Redirect ends on the wrong page (home instead of product)Fix guide