The sitemap is the only file where you tell search engines “here is everything I want found” — and the only one that silently stops doing its job: it 404s after a redesign, keeps listing pages that now redirect, or freezes on a lastmod date two years old. A crawler won’t email you about it. This is what to check, in what order, before Google finds the problem for you.
The checklist: what a sitemap must satisfy
| Check | Why it matters |
|---|---|
| Reachable (200, stable URL) | A redirecting or dead sitemap stops discovery entirely. Chains that end nowhere are the classic post-migration leftover. |
Parses as XML: urlset or sitemapindex | One broken tag discards the whole file. An empty file or an HTML error page with a 200 status parses as nothing. |
| URL count matches the site | If the sitemap says 300 and the site has 900 pages, 600 URLs have silently dropped out of discovery. |
| Newest lastmod is fresh | A frozen lastmod tells crawlers there is nothing new — even when there is. Measure it in days, not vibes. |
| Index children resolve | A sitemap index lists child sitemaps; if a child 404s, everything in it is undiscoverable via the sitemap. |
| File within protocol limits | One sitemap file may hold 50,000 URLs or 50 MiB uncompressed. Past either limit, the file must be split — and the excess is silently ignored. |
Discovery order matters too: crawlers read Sitemap: directives from robots.txt first, then fall back to the conventional paths — /sitemap.xml, /sitemap_index.xml. If your file lives elsewhere, the robots.txt directive is not optional.
The lastmod trap
lastmod is a promise: “this content changed on this date”. Two failure modes cost real traffic:
- Frozen lastmod. If the newest date in the file is months old while the site publishes weekly, crawlers learn to trust the file less — and crawl it less often.
- Invented lastmod. Bumping every URL to today to “force a recrawl” is the opposite: search engines document that they ignore lastmod values that are systematically implausible. Once ignored, honest updates from the same file are ignored with it.
The healthy state: lastmod changes when the content changes, and the newest value in the file is days old, not months. Track the age — for a whole domain list at once, a bulk sitemap checker reports the newest lastmod and its age in days per domain, highlighted once it crosses your own threshold (the default is 30 days).
Sitemap indexes: the file that promises nothing by itself
Above the protocol limits a site splits its map: sitemapindex at the top, child sitemaps below. The catch — the index itself contains zero URLs. It only works if every child is reachable, valid and inside the limits as well. A child that 404s after a rename takes its whole section out of discovery, and nothing on the index page will show it.
So check the children, not just the index: how many are declared, how many resolve, and what their combined URL count adds up to. A bulk checker that follows the index (up to 5 child sitemaps per domain) gives you total coverage as one number — the same report also shows how many Sitemap directives exist in robots.txt and the exact URL that was fetched.
Verify in practice
For one domain, start at the top:
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/sitemap.xml
curl -s https://example.com/robots.txt | grep -i sitemap
The first line answers “is it there”, the second — “where do I officially declare it”. Then open the file and ask the checklist questions: does it parse, how many <loc> entries, how old is the newest lastmod, are the child sitemaps of an index alive?
For more than one domain this stops scaling fast — staging and production, clients, a portfolio. A bulk sitemap check runs the whole checklist per domain in one pass: found-or-not, status, type (urlset/index), URL count, newest lastmod and age, child sitemaps, size and truncation flags — exportable to CSV for migration checklists. For a single domain, the instant sitemap check shows the same without a terminal. And since sitemap discovery starts in robots.txt, a bulk robots.txt check confirms the Sitemap directives are present and reachable on every host you run — including the www. copy people always forget.
Common mistakes
- Listing URLs that redirect or 404. The sitemap becomes a list of things the crawler can’t have. After a migration, export the sitemap URLs and run them through a status check first.
- Listing URLs blocked by robots.txt. The sitemap says “here”, robots.txt says “no” — the crawler obeys robots.txt, and the entry is dead weight.
- One file for everything, forever. Past 50,000 URLs the tail is silently ignored — split into an index before the tail grows, not after a section vanishes.
- The file on one host, the site on another. Rules and sitemaps attach to the hostname; a
www-vs-apex split needs its own sitemap and its own check. - Regenerating the sitemap on every deploy with identical content — the file keeps changing, the lastmod lies, trust drops.
Check every domain’s sitemap at once: run the bulk XML sitemap checker — discovery, validity, URL counts, lastmod freshness and index children in one CSV-ready report.