Blog / Technical SEO /
How to inspect a sitemap after a large content migration
The sitemap validates. Green tick. Job done?
Not quite. After a large migration, templates, redirects and publishing rules may have changed, and the sitemap can still list URLs the site no longer wants crawled. Inspecting it means checking that it reflects the current site’s preferred, accessible URLs, and that the migration left no stale or unintended entries.
Know which sitemap you are checking
Identify the sitemap index and the child files it points to. Confirm that each file is reachable and formatted as expected. If the site has separate sitemaps for pages, products, images or other content, understand what each is intended to contain. Do not assume that a file name tells the full story.
After a migration, I check the sitemap generated on the live site, not just a copy from staging. The environment may use different hostnames, protocols or publishing rules. Note when you retrieved it and which release was live.
Compare entries with the migration map
Use the old-to-new URL map as a reference. Current sitemap entries should generally represent the preferred destination URLs, not old addresses that redirect elsewhere. Look for removed pages, redirected URLs, duplicate variants, staging hostnames, parameterised URLs or unexpected path patterns.
A sitemap is not a replacement for internal links or redirects. It helps expose URLs the site wants crawlers to discover; it does not guarantee they will be indexed. Check whether each listed page is reachable and intended to be available. If a page is noindexed, blocked, canonicalised elsewhere or returning an error, investigate why it appears in the sitemap.
Check canonical and status behaviour
I sample URLs from each sitemap section and request them. Confirm response status, canonical destination and robots directives. Ensure that the sitemap points to the expected canonical URL. A successful response alone does not prove the page is eligible for indexing or useful to users.
Look for redirect chains and inconsistent host or protocol versions. A page that redirects from HTTP to HTTPS may still resolve, but the sitemap should generally use the intended final URL. Confirm trailing slash and case conventions according to the site’s routing rules.
Validate coverage and scale
Compare sitemap URLs with a crawl or URL inventory. Large gaps can mean a template stopped including a page type, the migration dropped important content, or old URLs linger in the file. Investigate the reason instead of trying to make the counts match mechanically. Not every URL belongs in a sitemap.
Check the file stays within current protocol limits and is split where needed. Use official documentation for size and format requirements, because they can change. A tool can report valid syntax and still miss whether the URLs are right.
Inspect generation rules
Find out how the CMS or sitemap plugin decides which URLs to include. Are drafts excluded? Are canonicalized variants omitted? What happens when a product is unpublished or a category is empty? A single setting can affect thousands of entries. Review the configuration and test representative cases before changing it.
If the migration introduced a new content model or URL pattern, verify that the generator understands it. Check whether translated or paginated pages are handled as intended. Do not assume a plugin’s default is right for this site; confirm its behaviour in the installed setup.
Submit and monitor responsibly
After correcting the sitemap, submit or resubmit it through the site’s established Search Console process if appropriate. Record the date and note that reporting may take time. Use status reports as follow-up evidence, not as an immediate confirmation that every page is indexed.
Track errors and unexpected exclusions with the affected URLs, issue, owner and resolution. If a sitemap entry is removed, confirm that the page’s other discovery routes and intended status are clear. The aim is consistency between the site, its canonical signals and the sitemap.
Keep a final audit record
Save the sitemap version, test sample, discrepancies, decisions and date. This is especially useful after a major migration, when later teams may not know whether an old URL was intentionally retired. Repeat the check after changes to routing, CMS publishing rules or sitemap generation.
A post-migration sitemap should describe the current set of preferred URLs, not preserve the history of the old site by accident.
Pay attention to sitemap index files as well as child files. A valid child sitemap is not useful if the index points to an old location or fails to list a new file. Check compressed files after retrieval and note whether the crawler can access the same endpoint. If a sitemap is generated dynamically, a cached version may lag behind the latest release; confirm the timestamp and refresh process.
Do not chase exact URL totals without understanding the intended inventory. A migration may intentionally remove duplicates, old campaign pages or empty archives. For each discrepancy, classify it as expected, missing, stale or unresolved. This makes the follow-up manageable and keeps the team from adding low-value URLs just to match an old count.
If a page is missing from the sitemap but should be available, check the publishing status and generator rules. It may still be discoverable through internal links, but the omission can reveal a template or configuration gap. Assign an owner and retest the generated file after the correction.
Related reading
- Reviewing SEO requirements for a site search redesign
- How to test a redirect map with representative URL samples
- How to assess the impact of a large CMS content cleanup
Which sitemap index and child file would you compare against the migration inventory first?