Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Sitemap lists 404, redirect or noindex URLs: how to fix it

SEO-105Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

An XML sitemap is a file (usually /sitemap.xml) that lists the URLs you want search engines to crawl and index. This issue means some of those listed URLs do not deserve to be there. There are four common kinds.

Four kinds of bad sitemap entries
TypeWhat the URL doesTypical cause
404 / 410Page no longer existsDeleted page, sitemap not refreshed or cached
Redirect (301/302)Sends visitors to another URLChanged slug, http to https, trailing slash change
NoindexPage tells search engines not to index itThank-you pages, filtered pages, SEO plugin setting
CanonicalisedCanonical tag points to a different URLDuplicates, parameter URLs, variants

Search Console reports these as statuses such as Submitted URL not found (404), Submitted URL marked 'noindex' and Page with redirect. Google treats the sitemap as a hint, not a command, so a messy one is not a penalty. It does make your signals less trustworthy.

Why it costs you leads or sales

The sitemap says one thing and the page says another. Search engines spend crawl time on dead or redirected URLs instead of your new product and service pages. On large sites, new pages can be discovered and refreshed more slowly. The impact is usually medium, not severe, but it hides real problems: when the report is full of noise, you miss the one important page that dropped out.

How a bad sitemap entry wastes a crawl
  1. Sitemap lists URLEntry says: index this
  2. Crawler requests itGets 404, redirect, noindex or other canonical
  3. Crawl time wastedVisit adds nothing to the index
  4. Important pagesDiscovered or refreshed later

The crawler follows the sitemap, hits a dead end, and the page you wanted indexed waits longer.

Share of sitemap URLs that are indexableExample numbers
Share of sitemap URLs that are indexable (example)Before cleanup: 72 %; After cleanup: 99 %038767299Before cleanupAfter cleanup%

Example: a 1,000-URL sitemap before and after cleanup. Numbers are illustrative.

How to check if your site has it

Audit your sitemap
  1. Check Search Console

    Open Indexing > Sitemaps, select your sitemap, then open the page indexing report filtered to that sitemap. Look for 'Not found (404)', 'Page with redirect', 'Excluded by noindex tag' and 'Alternate page with proper canonical tag'.

  2. Crawl the sitemap with an SEO crawler

    In Screaming Frog, choose Mode > List, or crawl with 'Crawl These Sitemaps' enabled. Then review the Response Codes, Directives and Canonicals tabs. Other crawlers with sitemap audits work the same way.

  3. Spot-check with a script

    Use the snippet below to list status codes for every URL in the sitemap.

  4. Check noindex and canonical on suspects

    Open a flagged page, view source, and search for noindex and rel="canonical". Also check the X-Robots-Tag HTTP header.

List status codes and final URLs for every sitemap entrybash
curl -s https://example.com/sitemap.xml \
  | grep -oP '(?<=<loc>)[^<]+' \
  | while read url; do
      curl -s -o /dev/null -w "%{http_code} %{redirect_url} $url\n" "$url"
    done | grep -v '^200 '

How to fix it

The rule is simple: every URL in the sitemap should return 200, be the final URL after any redirect, have no noindex, and canonical to itself. For each bad entry, decide whether the page or the sitemap is wrong.

What to do for each type
ProblemIf the page should existIf it should not be indexed
404Restore the page or fix the linkRemove from sitemap; 301 to a close match if one exists
RedirectPut the final destination URL in the sitemapRemove the old URL
NoindexRemove the noindex, keep in sitemapRemove from sitemap
CanonicalisedMake canonical self-referencingList only the canonical URL
Clean the sitemap by platform
  1. Let your SEO plugin build the sitemap

    Yoast SEO, Rank Math and the built-in WordPress sitemap generate it dynamically. Use only one of them.

  2. Exclude noindex content

    In Yoast, set the page or post type to 'No' under 'Show in search results'. In Rank Math, set Robots Meta to noindex. Pages set to noindex are normally removed from the sitemap automatically.

  3. Clear caches

    Purge your caching plugin and any CDN cache for the sitemap URL so the old list disappears.

  4. Fix redirects at the source

    If you changed slugs, update the post permalink rather than adding a redirect over the old one, so the sitemap shows the new URL.

How to confirm it's fixed

Confirmation checks
  • Open the live sitemap in a browser and confirm the bad URLs are gone.
  • Re-run the status code script: no lines should print.
  • Re-crawl the sitemap in your SEO tool: all URLs 200, indexable, self-canonical.
  • In Search Console, resubmit the sitemap under Indexing > Sitemaps.
  • Check the page indexing report again after a few days; the affected counts should fall as Google recrawls.

How to prevent it happening again

Habits that keep it clean
  • Use a dynamically generated sitemap, not a hand-edited or exported file.
  • When you delete or move a page, update internal links and check the sitemap the same day.
  • Add a sitemap crawl to your monthly SEO review.
  • After a migration or slug change, re-crawl the sitemap before and after launch.
  • Review noindex settings whenever you change a plugin or theme.
How a clean sitemap goes bad
  1. Example: Week 1

    You rename 40 product slugs. Redirects are added.

  2. Example: Week 2

    A cached sitemap still lists the old URLs.

  3. Example: Week 4

    Search Console shows 'Page with redirect' warnings.

  4. Example: Week 5

    Cache purged, sitemap lists final URLs only.

How FunnelGuard handles this

FunnelGuard does not check this yet. Auditing sitemap contents for 404, redirected, noindex or canonicalised URLs is a possible future check, not something it does today.

What FunnelGuard does do is run your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule, check each step and the tracking hits sent to ad and analytics platforms, and confirm test leads reach your inbox and CRM. That covers the conversion side of your site, not sitemap hygiene.

To watch for sitemap problems, use the Search Console page indexing report, schedule a monthly sitemap crawl in an SEO crawler, or run the status code script above. FunnelGuard also offers a free read-only website audit if you want a broader look at your site.

Questions people ask

Why does Search Console say 'Submitted URL marked noindex'?

It means a URL in your sitemap has a noindex tag or header, so you are asking Google to index a page that tells it not to. Either remove the noindex if you want the page indexed, or remove the URL from the sitemap.

Should a sitemap contain redirected URLs?

No. List only the final destination URL that returns 200. Redirected URLs in a sitemap waste crawl time and show up as 'Page with redirect' in Search Console.

Do 404 URLs in my sitemap hurt my rankings?

Not directly as a penalty, but they waste crawl effort and make your sitemap less reliable. Remove them so Google focuses on pages that exist.

Should canonicalised URLs be in the sitemap?

No. If a page's canonical tag points to another URL, list the canonical URL instead. Only self-canonical, indexable pages belong in the sitemap.

How do I find broken URLs in my XML sitemap?

Crawl the sitemap with a tool such as Screaming Frog in list mode, or run a script that requests each URL and prints non-200 status codes. Search Console's page indexing report also lists them.

How do I remove a page from my sitemap in WordPress?

Set the page to noindex in Yoast SEO or Rank Math, or turn off its post type in search results. The plugin then drops it from the sitemap. Purge any cache afterwards.

How long until Search Console updates after I fix the sitemap?

Usually days to a few weeks, depending on how often Google recrawls your site. Resubmitting the sitemap can help it notice the change sooner.

Does FunnelGuard check my sitemap for bad URLs?

Not yet. It is a possible future check. Today FunnelGuard monitors your funnels, tracking and lead delivery, so use Search Console or a crawler for sitemap audits.

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.