SearchAuditPro
LoginStart Free Trial

XML Sitemap Audit: What Belongs and What Does Not

XML Sitemap Audit: What Belongs and What Does Not

By Joe Whyte · 11/23/2026

Most sites have an XML sitemap, and most of those sitemaps were generated once by a plugin or a CMS and never looked at again. That is a missed opportunity, because a sitemap is one of the few places where you tell search engines directly which URLs you consider important. When the file is full of redirects, error pages and parameter variations, it sends a confused message.

This post covers what a sitemap should contain, what to remove, and how to audit the file by comparing it against what a crawl actually finds.

What a sitemap does and does not do

A sitemap is a discovery and signaling aid. It helps search engines find URLs, particularly new pages, deep pages and pages with few internal links. It also gives a rough picture of which URLs you want treated as canonical.

It does not force indexing. Listing a URL does not guarantee Google will crawl it quickly, index it or rank it. It also does not fix a weak internal linking structure. If a page only exists in the sitemap and nowhere in your navigation or content, that is an orphan page, and the sitemap is covering up a structural problem rather than solving it.

Keeping that in mind makes the audit simpler. The question for every URL in the file is: do we want this page to appear in search results? If the answer is no or not sure, it should not be there.

The rule for what belongs in a sitemap

A URL belongs in the sitemap if it meets all of these conditions:

  • It returns a 200 status code.
  • It is indexable, meaning no noindex directive in the HTML or the HTTP header.
  • It is the canonical version of itself, so the canonical tag points to the same URL.
  • It is not blocked by robots.txt.
  • It has real value for a searcher, not a thin or utility page.

Everything else is noise. Think of the sitemap as your shortlist of pages that should be indexed, not an inventory of the site.

What to remove

Redirecting URLs

Any URL that returns a 301 or 302 should be replaced in the sitemap by its final destination. Redirects often creep in after a URL structure change or a switch from http to https, or from non-www to www. The sitemap generator keeps listing the old addresses because nobody told it otherwise.

Error pages

404 and 410 pages do not belong in a sitemap. Neither do URLs returning 5xx errors, although those should be fixed on the server side first. A handful of errors is normal on a large site. Hundreds suggest the sitemap is not being regenerated when content is removed.

Noindexed and canonicalized URLs

This is the most common contradiction. A URL in the sitemap says "index this" while the page itself says "do not index" or "the real version is elsewhere." Search engines will usually resolve it in favor of the page, but the conflict wastes crawl attention and makes your reports harder to read. Tag archives, internal search results, filtered category views and paginated parameter URLs are typical offenders.

Blocked URLs

If robots.txt disallows a URL, search engines cannot fetch it to see its content. Listing it in the sitemap is another mixed signal. Decide which instruction is right and remove the other.

Low-value utility pages

Login pages, cart and checkout steps, thank-you pages, print versions and staging paths have no reason to be in the file. The same goes for thin pages you have not yet decided to improve or prune.

What to ignore: priority and changefreq

The sitemap protocol includes optional priority and changefreq tags. Google has said it does not use them, so spending time tuning them is wasted effort. Many plugins fill them with default values that do not reflect anything real.

The lastmod tag is different. Search engines can use it to decide when to recrawl a page, but only if it is accurate. If every URL shows today's date because the generator stamps the whole file on each build, the value becomes meaningless and will likely be ignored. Update lastmod only when the content of a page meaningfully changes, not when a footer link or a sidebar widget is edited.

How to audit your sitemap step by step

  1. Locate every sitemap. Check robots.txt for Sitemap lines, look for a sitemap index file, and review what is submitted in Google Search Console and Bing Webmaster Tools. Sites often have an old file still submitted alongside a new one.
  2. Extract the full URL list. If you use a sitemap index, pull the URLs from each child file.
  3. Crawl those URLs. Record the status code, indexability, canonical target and robots.txt status for each one.
  4. Crawl the site normally. This gives you the set of URLs that can be discovered through links.
  5. Compare the two lists. The differences tell you what to fix.
  6. Fix the generator, not just the file. If the sitemap is produced by a plugin or script, change its rules so the problem does not return.

In SearchAuditPro, a page-by-page audit gives you status codes, canonical tags and indexability for each URL in one view, which makes the comparison in steps 3 to 5 a filtering exercise rather than a spreadsheet project. Any crawler that exposes those fields will do the job, though.

Reading the comparison

URLs in the sitemap but not in the crawl

These are pages search engines are told about but that your own navigation and content do not link to. Some are legitimate, such as a new page not yet linked. Many are orphans, old pages or URLs that should have been removed. For each group, decide whether to add internal links, redirect, or delete and drop from the file.

URLs in the crawl but not in the sitemap

Filter these by indexability. If an indexable, canonical, 200 page is missing from the sitemap, it probably should be added. Check for whole sections that are absent, since that usually points to a plugin setting that excludes a post type or a template that was never registered.

URLs in both with conflicting signals

Sort the sitemap URLs by status and directive. Anything that is not a clean, indexable 200 with a self-referencing canonical is a candidate for removal or for fixing on the page itself. Be careful here: sometimes the sitemap is right and the noindex tag was added by mistake. Check before deleting anything.

Using the Search Console sitemap report

Search Console shows how many URLs were discovered from each submitted sitemap, and the page indexing report can be filtered to a specific sitemap. That filter is useful. If you submit separate sitemaps by section, you can see which sections have a large share of URLs marked as not indexed, and why.

Treat that as a diagnostic, not a target. A sitemap where nearly every URL is indexed usually means the file is clean. A sitemap with many excluded URLs means either the file includes the wrong pages or the pages have quality or duplication problems that need their own investigation.

Structuring sitemaps for larger sites

A single sitemap file is limited to 50,000 URLs or 50 MB uncompressed. Past that you need multiple files tied together with a sitemap index. Even below those limits, splitting makes sense for sites with distinct content types.

  • Separate files for products, categories, blog posts and static pages.
  • For very large catalogs, split further, for example by category or by date range.
  • Keep each file focused so the Search Console filter gives you a clear picture per section.

Image and video sitemaps can help when media is central to the business, but they are secondary to getting the main page sitemap right.

Common mistakes we see

  • Submitting a sitemap that lists http URLs after moving to https.
  • Leaving a staging domain's URLs in the file after launch.
  • Including both trailing slash and non-trailing slash versions of a URL.
  • Stamping every lastmod with the build date.
  • Forgetting to update the sitemap after a migration, which keeps old URLs listed for months.
  • Relying on the sitemap to get pages indexed while the pages have no internal links.

A simple routine to keep it clean

You do not need a heavy process. After any migration, template change or plugin update, recrawl the sitemap URLs and confirm that every one is a 200, indexable and self-canonical. Outside of those events, a quarterly check is enough for most sites. Monthly is better for large or fast-changing catalogs, where products appear and disappear constantly.

A sitemap is a small file with an outsized role in how clearly you communicate with search engines. Keep it to the pages you want found, keep the dates honest, and compare it against your crawl regularly. You can run that comparison with a crawl in SearchAuditPro or with any tool that reports status, canonical and indexability per URL.