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.
| Type | What the URL does | Typical cause |
|---|---|---|
| 404 / 410 | Page no longer exists | Deleted page, sitemap not refreshed or cached |
| Redirect (301/302) | Sends visitors to another URL | Changed slug, http to https, trailing slash change |
| Noindex | Page tells search engines not to index it | Thank-you pages, filtered pages, SEO plugin setting |
| Canonicalised | Canonical tag points to a different URL | Duplicates, 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.
- Sitemap lists URLEntry says: index this
- Crawler requests itGets 404, redirect, noindex or other canonical
- Crawl time wastedVisit adds nothing to the index
- Important pagesDiscovered or refreshed later
The crawler follows the sitemap, hits a dead end, and the page you wanted indexed waits longer.
Example: a 1,000-URL sitemap before and after cleanup. Numbers are illustrative.
How to check if your site has it
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'.
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.
Spot-check with a script
Use the snippet below to list status codes for every URL in the sitemap.
Check noindex and canonical on suspects
Open a flagged page, view source, and search for
noindexandrel="canonical". Also check the X-Robots-Tag HTTP header.
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.
| Problem | If the page should exist | If it should not be indexed |
|---|---|---|
| 404 | Restore the page or fix the link | Remove from sitemap; 301 to a close match if one exists |
| Redirect | Put the final destination URL in the sitemap | Remove the old URL |
| Noindex | Remove the noindex, keep in sitemap | Remove from sitemap |
| Canonicalised | Make canonical self-referencing | List only the canonical URL |
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.
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.
Clear caches
Purge your caching plugin and any CDN cache for the sitemap URL so the old list disappears.
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.
Know the limits
Shopify generates
/sitemap.xmlautomatically and you cannot edit it directly.Remove dead products
Delete or archive products that no longer exist, and set up a redirect under Online Store > Navigation > URL Redirects if needed.
Hide pages from search
For products or pages you do not want indexed, a common approach is a noindex meta tag in the theme; check that your theme or app also keeps them out of the sitemap, as that depends on the setup.
Use the sitemap exclusion setting
In Page Settings, turn on 'Exclude this page from the sitemap' for pages you do not want listed. For CMS collections, use the collection template page settings.
Publish
Publish the site so the regenerated sitemap goes live.
Set pages to hidden from search
In the page's SEO settings, switch off 'Show this page in search results'. Wix then adds noindex and drops it from the sitemap.
Hide pages from search
In Page Settings > SEO, turn on 'Hide this page from search results'. Squarespace removes it from the sitemap. Delete pages you no longer need.
Generate the sitemap from live data
Build it from the same query that decides which pages are public, and filter on status 200, indexable and canonical equals self.
Regenerate on change
Rebuild on publish, unpublish, delete and slug changes rather than keeping a hand-edited file.
How to confirm it's fixed
- 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
- 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.
Example: Week 1
You rename 40 product slugs. Redirects are added.
Example: Week 2
A cached sitemap still lists the old URLs.
Example: Week 4
Search Console shows 'Page with redirect' warnings.
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.
Related issues
- SEO-102Sitemap returns 404 or 5xxFix guide
- SEO-104Sitemap stale: new pages missingFix guide
- SEO-106Sitemap lists staging or wrong-domain URLsFix guide
- SEO-107Sitemap lists http URLs on an https siteFix guide
- SEO-110Money pages missing from the sitemapFix guide
- SEO-112Sitemap index references dead child sitemapsFix guide