Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Sitemap lists redirecting URLs: how to find and fix it

SEO-090Low impactOther toolBy FunnelGuardPublished Updated
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

What a crawler does with a redirecting sitemap entry
  1. Sitemap readCrawler fetches /sitemap.xml
  2. Old URL listedEntry returns 301
  3. Extra hopCrawl effort spent on redirect
  4. 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

Find redirecting sitemap URLs
  1. Open your sitemap

    Visit https://yourdomain.com/sitemap.xml. If it is an index, open each child sitemap.

  2. 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.

  3. 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.

  4. Spot check with curl

    Run the command below on a few entries. Anything other than 200 needs fixing.

Check the status code of one URLbash
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://example.com/old-page/

How to fix it

Clean the sitemap by platform
  1. 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.

  2. 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.

  3. Clear caches

    Purge your caching plugin and any CDN so the sitemap is rebuilt, then reopen /sitemap_index.xml (Yoast) or /wp-sitemap.xml.

Then resubmit
  1. Resubmit in Google Search Console

    Open Sitemaps, enter the sitemap path and submit it again so Google rereads it.

  2. Resubmit in Bing Webmaster Tools

    Open Sitemaps and submit the same file.

Sitemap entry before and after

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

Confirmation checklist
  • 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.