French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles SEO & visibility7 min read

An incorrect sitemap after a redesign

Clean a sitemap holding old URLs, redirects, 404s, noindexed pages, duplicates or the wrong domain, and submit it again.

Clean up a sitemap containing old URLs, redirects, 404s, noindex, duplicates or the wrong domain, and resubmit it. The priority is to restore a situation under control without wiping the traces useful to the diagnosis.

Illustrated diagnosis: incorrect sitemap after a redesign
Diagnosing an incorrect sitemap after a redesign: symptoms, causes, fixes and checks.

How do I recognise an incorrect sitemap after a redesign?

After a redesign or a migration, the check has to compare the old and the new site URL by URL: HTTP status, canonical, robots, content, internal links, sitemap and redirects. The costliest errors are often systematic, and so can be spotted quickly. Start by noting when it appeared, the most recent changes, the URLs concerned and the behaviour observed.

Compare the old and the new structure: the list of URLs indexed before the redesign, each one's current HTTP status, and where the redirects lead. Note the launch date, because it is your marker in Search Console.

01 · Signal to check

Errors or excluded URLs in the Sitemaps report

02 · Signal to check

The old domain still listed

03 · Signal to check

A URL count that does not match the site

One signal alone does not prove the cause: “Errors or excluded URLs in the Sitemaps report” can come from “A sitemap cache never purged” just as easily as from “Content types you removed still included”. Look for at least two findings that agree before you apply a lasting fix.

What a sitemap should contain

An XML sitemap lists only canonical, indexable URLs that answer 200. URLs that redirect, carry a noindex, return 404 or are blocked in robots.txt have no place in it: they send contradictory signals and show up as errors or warnings in Search Console's Sitemaps report.

A sitemap file is capped at 50,000 URLs and 50 MB uncompressed; beyond that, a sitemap index gathers several files. The lastmod tag is only useful if it reflects when the content really changed: Google ignores it when it is consistently wrong.

After a redesign: the old sitemap and the new one

A common mistake is leaving the old sitemap in Search Console, or the one an old plugin generated, alongside the new. Delete the obsolete sitemaps, submit the new file, and check it is declared in robots.txt with the Sitemap directive.

WordPress generates a sitemap of its own at wp-sitemap.xml, and SEO plugins often replace it with theirs. Make sure only one system is active, then compare the URLs submitted with the URLs indexed in the report: a large gap is worth analysing page by page.

Causes to check

For an incorrect sitemap after a redesign, the 4 causes below are ranked from the commonest to the rarest. Test the one matching the site’s most recent change first, one at a time.

01 · Possible cause

A sitemap cache never purged

02 · Possible cause

Content types you removed still included

03 · Possible cause

Non-canonical URLs or pagination exported

04 · Possible cause

A sitemap index pointing at old files

The export of the old site's URLs, the redirect plan, the sitemaps, the indexing report and a crawl of the new site quickly show where the continuity broke.

A good fix does not merely make the symptom disappear. It explains why the problem appeared and how to check that it does not come back.
An animated process to understand incorrect sitemap after a redesign
The subject in motion: observe the facts, apply an action in proportion, then check the result.

Precautions before starting

Keep the full export of the old URLs, their tags and their inbound links before fixing anything. Without that list, rebuilding the missing redirects gets hard.

Back up the .htaccess file, or your current redirect configuration, too: one rule in the wrong place can break the whole site.

Free Host by French tool

Check your sitemap file answers properly

Enter your sitemap's address (https://your-site.com/sitemap.xml, say) to check its HTTP status and whether it is really reachable.

The check queries this address directly from our servers. No data is kept.

Need every URL in the sitemap checked?

Request a full check
ORDER OF WORK

Diagnosis and fix

PhaseObjectiveA mistake to avoid
ObserveReproduce it and gather the evidenceChanging several settings before you have a baseline
IsolateConfirm the component or the rule responsibleDeleting files without keeping a copy
FixApply the smallest documented changeRestoring a version that still contains the same cause
ValidateTest the whole journey and monitor itConcluding from the home page loading alone

How do I resolve the problem?

The 4 steps below tackle an incorrect sitemap after a redesign from the least intrusive to the heaviest. After each change, repeat the same test; if nothing changes, go back to the previous state before moving on to the next step.

  1. 01

    Step 1

    Download every sitemap and normalise its URLs.

  2. 02

    Step 2

    Check for 200s, indexability, the canonical, and that each URL belongs to the domain.

  3. 03

    Step 3

    Fix the generation at source and purge every cache.

  4. 04

    Step 4

    Resubmit the clean index, then track the URLs discovered.

If a step changes the database or the code directly, do it on a copy first. Once the fix is in place, the first check is still this: compare the exact count with the indexable pages.

Validate the resolution

Test a broad sample of old URLs: each should answer 200, or redirect in a single hop to the equivalent page. Check the canonical, the robots tag and the sitemap on the destination pages too.

Validation checks

Follow the indexing report and the migrated pages' traffic for several weeks: Google swaps the old URLs for the new ones gradually.

Prevent a recurrence

Prevention has to answer the cause you identified. For an incorrect sitemap after a redesign, the first measure is “Generate it from the page register”; note too the signal that would have shown the incident sooner, and who is responsible for watching for it.

01 · Preventive measure

Generate it from the page register

02 · Preventive measure

Test every sitemap on deployment

03 · Preventive measure

Strip out the non-canonical URLs

04 · Preventive measure

Watch for gaps in the counts

For the next redesign, prepare the redirect table before launch and run a verification crawl on the day.

A practical diagram about incorrect sitemap after a redesign
A marker specific to this article: three steps to turn reading into a decision you can verify.
FREQUENTLY ASKED QUESTIONS

Frequently asked questions about an incorrect sitemap after a redesign

Which URLs belong in the sitemap?

Only canonical, indexable URLs that answer 200. Redirected, noindexed or erroring pages should be taken out.

Should you remove the old sitemap from Search Console?

Yes, if it no longer exists or lists the old URLs. Submit the new sitemap and declare it in robots.txt.

Is the lastmod date useful?

Yes, if it reflects when the content really changed. A date bumped artificially on every build ends up being ignored.

How do you check the fix will hold?

Compare the exact count with the indexable pages. Check the XML, the encoding and the file size. Make sure no redirect or 404 is left in it. Then watch the logs, the alerts and the relevant metrics for several days.

ON TO YOUR OWN CASE

How to resolve it

If an incorrect sitemap after a redesign persists after these steps, we can pick the diagnosis up again from your logs and your access details, without acting blind on the site.

Get a diagnosis

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
Devsource video

The key point in one minute

A short piece by Maxime Guinard summarising the essentials of this page. A dedicated watch page lets you follow it properly.

DEVSOURCE VIDEO • 33 S

XML sitemap & robots.txt generator - Devsource

XML sitemap: Google does not always guess what you want to show it.A site can be beautiful, fast, well written… and still be poorly understood by the engin…

Watch the video
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du Trône logo Goodyvest logo Kincy logo Lhotellier logo Audrey Mégelé du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo Fête des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Useful articles

See all articles
Illustrated diagnosis: 404 pages after a site migration
Migration and redesign SEO7 min read

404 pages after a migration: the fix

Sort the 404s after a migration, restore the pages worth keeping, fix the internal links and redirect only where there is a genuine equivalent.

Illustrated diagnosis: traffic drop after a domain change
Migration and redesign SEO7 min read

SEO drop after a domain change

Check the redirects, Search Console ownership, the canonicals, the links, DNS and the content when a domain change costs you SEO.

What they say about working with us

Google reviews about the support we provide for the Incorrect sitemap after a redesign. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours • Migration handled • Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan