How to validate hreflang during a locale migration
Validate hreflang during a locale migration in 3 checks — the old-to-new URL map, the 301 redirect path, and the live hreflang set on the destination…
Blue pins marking locations on a map of Europe
Last updated: November 27, 2026
Quick Answer: validate hreflang during a locale migration in 3 checks — the old-to-new URL map, the 301 redirect path, and the live hreflang set on the destination pages. How to validate hreflang when migrating from one locale structure to another starts with the URL map, because the topic is really about keeping old and new locale URLs aligned before and after launch.
Key takeaways
- A locale migration is a URL-mapping problem first and a hreflang problem second.
- Old and new locale URLs need a one-to-one map before launch, or the redirect layer will hide mistakes.
- Validate the new locale codes, the 301 redirects, and the live hreflang annotations as separate checks.
- Do not assume a redirect fixes hreflang. It can carry users to the right page and still leave search engines confused.
- The cleanest review happens in three passes: staging, launch day, and a short post-migration audit.
What is the first thing to check in a locale migration?
The first thing to check in a locale migration is the URL map, because hreflang validation fails fastest when an old locale URL lands on the wrong new one. A migration from /en-us/ to /en/ or from one country path to another changes the address book, not just the labels.
Therefore, start with a sheet that lists every old locale URL in one column and its new replacement in the next. Include the locale code on both sides, plus the final destination after a 301 redirect. A page with ten language variants can hide one wrong line, and one wrong line can break the relationship for the whole set.
This is where a generic SEO checklist falls short. A normal launch checklist may ask whether redirects work, but hreflang needs the mapping to be precise enough that each version of a page still has a clear partner in the new structure. Google’s localized versions guidance makes this relationship explicit: the alternate URLs have to point to the correct localized equivalents, not just to any page with similar content.
Use the URL map as the source of truth before you touch the site. If the map is wrong, the rest of the validation only proves the mistake more quickly.
How do you validate hreflang when migrating from one locale structure to another?
You validate hreflang when migrating from one locale structure to another by checking three things in order: the redirect chain, the locale code on each new URL, and the full hreflang cluster on the live page. That order matters because a page can return a 200 status and still be wrong if the alternates point at stale addresses.
For example, use a launch checklist with these steps:
-
Freeze the old-to-new URL map.
Lock the mapping before launch day, with one old URL matched to one new URL. If a page is moving from a directory structure to a different locale path, the match should be exact, not approximate. -
Check each old URL returns a 301 redirect.
The redirect should land on the correct new locale URL in one hop. A redirect chain that goes old URL → intermediate URL → new URL adds extra room for mistakes, even when the final page loads. -
Open the new URL and inspect its hreflang set.
Every alternate should point to the new structure, not the old one. If the page previously referenced/us/and now lives under/en-us/, the annotations should reflect that change everywhere. -
Confirm the locale code is still valid and consistent.
If the site changes from one locale pattern to another, the codes need to match the new structure exactly. A code drift likeen-GBin one place anden-gbin another is the sort of small mismatch that creates a big cleanup job. -
Check the canonical URL on the new page.
The canonical should point to the live version you want indexed. If the canonical still points to the old locale URL, hreflang and canonical signals will fight each other. -
Repeat the check on a sample from each locale group.
Do not stop after one language pair. A migration can look fine in English and fail in French, German, or another market where the template was edited later. -
Run a final live crawl after launch.
The live page is the only version that matters once redirects are active, but a staging crawl alone can miss a redirect issue introduced during deployment.
Here is a simple comparison of what to inspect before and after launch:
| Stage | What to inspect | What “good” looks like |
|---|---|---|
| Staging | URL map | Every old locale URL has one new target |
| Staging | Redirects | Old URLs send users straight to the right new page |
| Staging | Hreflang set | All alternate links use the new locale structure |
| Launch day | Canonicals | New pages canonicalize to the correct live URL |
| Launch day | Sample pages | At least one page from each locale group matches the map |
| Post-launch | Live crawl | The new structure still carries the same locale relationships |

Google Search Central’s localized-versions documentation is the right reference point here, because it describes hreflang as a set of alternate URLs that must stay aligned. That alignment is the whole job during a migration.
What breaks hreflang in a locale restructure?
Hreflang breaks in a locale restructure when the URL map, redirect target, and alternate links stop agreeing with each other. The most common failures are small, but each one causes a different kind of damage.
However, a wrong redirect target sends users and crawlers to the wrong market page. A stale hreflang annotation sends search engines back to a URL that no longer reflects the new structure. A canonical that still points at the old locale path can make the new page look like a copy instead of the preferred version.
The table below shows the usual failure modes:
| Failure | What it looks like | What it costs |
|---|---|---|
| Old URL redirects to the wrong locale | en-au lands on en-us |
Users see the wrong country page |
| Hreflang still points to old paths | Alternate links reference retired URLs | Search engines may follow outdated signals |
| Locale code changes without full updates | One page uses the new code, another keeps the old one | The cluster becomes inconsistent |
| Canonical and hreflang disagree | Canonical points one way, alternates point another | Indexing signals split |
| Partial template rollout | Some sections update, others do not | Only part of the site is valid |
Because of that, a migration also fails when the team checks only one page template. Locale structures often sit in shared components, so one template can be clean while another still prints the old path. That is why a 200 response on the homepage tells you little about the rest of the move.
A good rule is to inspect at least one page from each major template and locale set. If the site has product pages, category pages, and editorial pages, each one deserves a spot in the checklist. A migration that updates 90% of the site still leaves 10% to verify and fix.
How do you check redirects and locale codes before launch?
You check redirects and locale codes before launch by treating them as separate tests with separate pass conditions, and if the rollout affects user-facing locale targeting, it is wise to involve an SEO or localization professional and follow Google’s guidance on localized versions. A redirect can be valid while the locale code is wrong, and a locale code can be right while the redirect target is not.

The redirect test is simple: old locale URL in, new locale URL out, no extra stop in between. A direct 301 to the final page is usually the cleanest result. If the old URL sends you through an intermediate address, log it and remove the extra hop before launch if possible.
The locale-code test is stricter. Compare the code in the URL structure, the hreflang annotation, and the page content language. A page in the new /fr-ca/ structure should not keep an /fr-fr/ hreflang tag just because the content text looks similar. Language and market are not the same thing.
Specifically, a useful pre-launch checklist looks like this:
- Test 5 to 10 sample URLs from each locale group.
- Confirm each old URL returns one final 301 destination.
- Confirm each new URL loads with a 200 status.
- Confirm the hreflang set on the new page uses the new locale paths.
- Confirm the canonical URL matches the intended live page.
- Confirm the
x-defaultpage, if used, still points to the right fallback.
That last point matters because x-default can be the quiet failure point in a locale restructure. Teams fix the local language URLs and forget the fallback page. The result is a setup that looks fine in the target markets but sends the wrong signal when no locale match is found.
The safest way to do this work is to validate the map first, then the redirect, then the markup. If you reverse the order, you spend time fixing annotations that were only wrong because the URL move was still unfinished.
What should be in the launch checklist?
The launch checklist should contain the URL map, the redirect plan, the live hreflang check, and a short sample audit for every locale group. If it does not fit on one working page or one spreadsheet tab, it is probably too loose for a migration.
A practical launch checklist needs these items:
- Old URL to new URL mapping confirmed.
- 301 redirects tested on representative URLs.
- Hreflang annotations updated on the new structure.
- Canonical tags reviewed on the live templates.
x-defaultchecked where the site uses a fallback page.- At least one page from each locale group spot-checked after deployment.
- Any removed locale URLs accounted for in redirects, not left to 404.
The reason this checklist works is that it separates the things that are easy to miss. Redirects are not the same as annotations. Locale codes are not the same as content translation. Canonicals are not the same as preferred market routing. A launch checklist that merges them into one line leaves too much room for a single template bug.
This is also the point where a site can decide whether manual checking is enough or whether automation should carry part of the load. For teams that validate many pages, the companion guide to automating hreflang validation for multilingual SEO belongs here, because the migration workflow often becomes a repeatable pattern after the first restructure.
Ultimately, one honest limitation remains: a checklist will not catch a bad business decision. If the new locale structure itself is wrong, such as merging markets that need separate URLs, validation only proves the implementation, not the strategy.
What should you audit after the migration is live?
You should audit the live pages after the migration by confirming the new locale URLs, redirect behavior, and hreflang clusters still match the launch map. A post-migration audit is not a new project; it is the same check against the public site.
Give the live site a short audit window, even if the launch looked clean. Crawl a sample of the migrated URLs and compare the results with the launch checklist. If a template or redirect rule changed during deployment, this is where the drift shows up.
Focus on three things first:
- Redirects still go from retired locale URLs to the correct new pages.
- Hreflang on the live pages still references the new structure.
- Canonicals still support the intended live version instead of an old locale path.
A post-migration audit should be short and concrete. For example, review 3 to 5 URLs from each major locale set, plus any page types that use custom templates. That is enough to catch a structural error without turning the audit into a second migration.
Nevertheless, the mistake to avoid here is treating a clean homepage as proof that the rollout succeeded. Locale migrations usually fail in the edges: a category page, a product variant, a translated landing page, or one country code that was edited by hand.
The best result is simple: old URLs redirect cleanly, new locale URLs carry the right annotations, and the map you prepared before launch still matches what is live. That is the standard a migration should meet.
FAQ
How do you validate hreflang during a migration?
You validate hreflang during a migration by checking the old-to-new URL map, the redirects, and the hreflang tags on the live destination pages. The cleanest path is to test a sample from each locale group before launch, then repeat the same checks on the public site after deployment. That keeps the new structure and the alternate URLs aligned.
What breaks hreflang in a locale restructure?
Hreflang breaks in a locale restructure when old URLs, new URLs, and locale codes stop matching the same set of pages. A wrong redirect, a stale alternate link, or a canonical tag that still points to the retired locale can all break the cluster. One mismatched template can affect every market that shares it.
Should old locale URLs keep hreflang during redirects?
No, old locale URLs should not keep hreflang as a permanent state once the new structure is live. The redirect should move users and crawlers to the new locale URL, and the live hreflang annotations should live on the destination page. During the migration window, the priority is a correct redirect and a clean final annotation set, not duplicate signals on retired URLs.
Drafted with AI; not yet reviewed by a person.