Check 44.10 · Redesign and migration

Map old URLs to relevant equivalents

Find the best target for every old URL: automatic matching, a similarity script, decision rules and pages that have no equivalent.

Priority
Critical
Difficulty
Intermediate
Estimated time
1 to 4 days
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A redirect is only worth something if it leads to a page that meets the same need as the old one. This task consists of choosing, for each row of the redirect map, the closest target in content and intent: the same page at a new address, the page that absorbed it, its direct successor, or nothing at all (410) when no equivalent exists. Once the task is done, every old URL has a justified target, and redirects to the homepage or to an overly broad category are the exception.

Why it matters

Google treats a permanent redirect as a strong signal that the target replaces the old page. That transfer assumes the two pages correspond: redirecting many old URLs to a single, unrelated destination, such as the homepage, may be treated as a soft 404, in other words as a page that no longer exists. The old URL's signals are then not passed on.

Visitors judge the same way. Someone who clicks a link to a descaling guide and lands on a shop's homepage leaves. An AI assistant that follows a URL it had cited and finds different content no longer has any reason to cite it.

Automatic matching (same slug, same title) handles most rows. The rest requires judgement: a page split in two, a product replaced by its successor, a section that was removed. That is where most of the losses in a redesign happen.

What it improves

  • Signal transfer The old page's links and history benefit an equivalent page, which limits the drop in rankings.
  • Soft 404s Fewer redirects ignored by Google because the target is unrelated.
  • Visitor experience People who arrive through an old link find what they were looking for.
  • AI citations URLs that have already been cited lead to content consistent with the citation.
  • Rankings No gain in itself; a good mapping avoids a loss.

How to check

Take a sample of twenty rows from the map, including all the priority 1 rows, and open the old page (archive, crawl or screenshot) and the target side by side. A sound mapping answers yes to three questions:

  1. Does a visitor who came for the old page find their answer on the target without having to search?
  2. Is the target in the same language and for the same market?
  3. Is the target the final URL, returning 200, and not a page that is itself redirected?

Then count the most frequent targets in the map: a single target receiving dozens of unrelated URLs is a sign of lazy mapping.

=QUERY(Plan!H2:H,"select H, count(H) where H is not null group by H order by count(H) desc limit 10",0)

How to implement

Step 1 — Prepare the two inventories

You need two tables with the same columns: URL, title, H1 and, if possible, the page type.

Put them in the Ancien (old) and Nouveau (new) tabs of the redirect map (opens in a new tab) spreadsheet, with the URL in column A, the title in B and the H1 in C.

Step 2 — Run the automatic matching

Apply these passes in order and keep, for each row, the first one that finds a target. The formulas are for Google Sheets, in the Ancien tab, to be filled down.

D · Same path on the new site:
=IF(COUNTIF(Nouveau!$A:$A,A2)>0,A2,"")

E · Last segment (slug) of the old URL:
=IFERROR(REGEXEXTRACT(A2,"([^/]+?)(\.html?|\.php)?/?$"),"")

F · New URL ending with the same slug:
=IF(E2="","",IFERROR(INDEX(FILTER(Nouveau!$A$2:$A,REGEXMATCH(Nouveau!$A$2:$A,"/"&E2&"/?$")),1),""))

G · New URL with the same H1:
=IFERROR(INDEX(Nouveau!$A:$A,MATCH(C2,Nouveau!$C:$C,0)),"")

H · Suggestion:
=IF(D2<>"",D2,IF(F2<>"",F2,G2))

I · Method:
=IF(D2<>"","Identical path",IF(F2<>"","Same slug",IF(G2<>"","Same H1","To review")))

A slug containing regular expression special characters (dot, parenthesis) must be escaped; this is rare with clean slugs. Excel offers the same FILTER, INDEX, MATCH and IFERROR functions, but regular expressions require a recent version of Excel.

Step 3 — Match the remaining rows by similarity

For the “To review” rows, this Python script compares the slug and title of each old URL with all the new ones, using only the standard library. Export ancien.csv and nouveau.csv (columns url and title):

import csv
from difflib import SequenceMatcher

def texte(ligne):
    slug = ligne["url"].rstrip("/").split("/")[-1].replace("-", " ")
    return f"{slug} {ligne['title']}".lower()

with open("nouveau.csv", newline="", encoding="utf-8") as f:
    nouvelles = list(csv.DictReader(f))

with open("ancien.csv", newline="", encoding="utf-8") as f, \
     open("propositions.csv", "w", newline="", encoding="utf-8") as sortie:
    ecriture = csv.writer(sortie)
    ecriture.writerow(["ancienne", "proposition", "score"])
    for ancienne in csv.DictReader(f):
        meilleure = max(
            nouvelles,
            key=lambda n: SequenceMatcher(None, texte(ancienne), texte(n)).ratio(),
        )
        score = SequenceMatcher(None, texte(ancienne), texte(meilleure)).ratio()
        ecriture.writerow([ancienne["url"], meilleure["url"], round(score, 2)])

The score ranges from 0 to 1. It sorts the work; it does not decide. Check every suggestion by hand, starting with the middling scores, where the false friends hide (“green tea” and “matcha green tea” look alike but are not the same page). For a few thousand URLs, the script runs in a few minutes; beyond that, limit the comparison to new URLs of the same type or in the same section.

Step 4 — Decide the difficult cases

Situation of the old page Target to choose Code
Same content, new address The new address 301
Merged with other pages The page that brings the content together 301
Split into several pages The page covering the main intent, or an overview page linking to the others 301
Product replaced by a successor model The successor's product page 301
Product permanently discontinued, no successor The category only if it offers genuinely equivalent products; otherwise none 301 or 410
Product temporarily unavailable No redirect: the product page stays online with its stock status Keep
Outdated article replaced by an up-to-date article on the same topic The new article 301
Page for a finished campaign (promotion, past event) None, unless there is a permanent page for the same event (next edition) 410 or 301
Tag pages, filters, internal search results with no equivalent None 410
Translated page The version in the same language, never the default language 301
Image or PDF The same file at its new address, or its new edition 301

For pages with no equivalent, a 404 or a 410 is better than a misleading redirect: see return 404/410 for removed content with no equivalent (opens in a new tab). For a multilingual site, see also check redirects and old translated URLs (opens in a new tab).

Warning: the homepage is only the equivalent of the old homepage. Redirecting removed pages to the homepage to “keep the link juice” is precisely what Google may treat as a soft 404. See avoid redirecting all removed pages to the homepage (opens in a new tab).

Step 5 — Get the priority 1 rows approved

Have the mappings for pages with high traffic, links or revenue reviewed by the person who knows the content (writer, product manager). In the Motif (reason) column, note the reason for the choice in one sentence: “merged with the Pricing page”, “successor to the X200 model”. A mapping with no reason is a mapping nobody has decided.

Completed example (fictional values):

Old URL Target Code Method Reason
/produits/the-vert-sencha.html /thes/the-vert/sencha/ 301 Same slug Same product, new structure
/guides/choisir-sa-theiere/ /guides/theieres/ 301 Similarity 0.71, approved Guide rewritten and expanded
/produits/bouilloire-k100.html /accessoires/bouilloire-k200/ 301 Manual Direct successor to the K100
/tag/promo/ 410 Manual Tag page with no equivalent
/en/green-tea/ /en/teas/green-tea/ 301 Same slug Same language kept

With a paid tool

Paid crawlers (licensed Screaming Frog, Sitebulb, Oncrawl, Botify) can crawl the old site and the staging site, export titles, H1s and content and, for some of them, compare two crawls. They speed up data collection, but the decision stays the same: every automatic suggestion must be checked, especially for the pages that matter.

Common mistakes

  • Redirecting to the parent category by default: acceptable when it offers real equivalents, misleading when it merely covers the same theme.
  • Accepting automatic matches without review: two similar slugs can refer to two different products.
  • Targeting a non-final URL: a target that is itself redirected, or lacks the right trailing slash, creates a chain.
  • Switching language in the redirect: an English page redirected to the French version loses its audience and its hreflang consistency.
  • Redirecting a product that is merely out of stock: the product page disappears even though it will be available again.
  • Redirecting every tag or filter page instead of letting them return 410.

Frequently asked questions

Which page should a removed page with no equivalent redirect to?

None: a removed page with no equivalent should return 404 or 410, with a helpful error page that offers search and the main sections. Redirecting to the homepage or to an unrelated category passes nothing on, because Google may treat these redirects as soft 404s, and visitors do not find what they were looking for. Keep redirects for pages that have a real replacement.

Should a discontinued product be redirected to its category?

Only if the category offers products genuinely equivalent to the one that disappeared. If a successor model exists, redirect to its product page: it is the most relevant target. If the product was unique and the category no longer meets the same need, let the product page return 410. A product that is simply out of stock is not redirected: its page stays online with its status.

How do you map thousands of old URLs automatically?

Work in successive passes in a spreadsheet: identical path, then same slug, then same H1. For the remaining rows, a similarity script such as Python's difflib compares the slug and title of each old URL with all the new ones and suggests the closest one with a score. These suggestions sort the work but do not decide: review them, starting with the pages that have traffic or links.

What should you do when a page is split into several new pages?

A URL can only redirect to one target. Choose the new page that covers the main intent of the old one, the one that received the most clicks, or create an overview page that introduces the topic and links to the detailed pages. Add internal links between the new pages, so that visitors and crawlers arriving through the redirect find the rest of the content.

Updated on

Topic checklist (PDF)

And now?

In the “Redesign and migration” topic

  1. Crawl the site before the redesign
  2. Export URLs and metadata
  3. Export Search Console and analytics data
  4. Export backlinks
  5. Identify revenue-generating pages
  6. Identify pages cited by AI systems
  7. Identify strategic pages to preserve
  8. Keep high-performing URLs if possible
  9. Create a comprehensive redirect map
  10. Map old URLs to relevant equivalents
  11. Preserve strategic content and internal links
  12. Preserve structured data, entity identifiers and important anchors
  13. Protect and audit the staging site
  14. Test performance before launch
  15. Test redirects
  16. Check canonicals, hreflang, sitemaps and robots.txt
  17. Remove indexing blocks on the live site
  18. Check tracking
  19. Submit new sitemaps
  20. Use Google's Change of Address tool if applicable
  21. Crawl the site after launch
  22. Monitor critical errors daily
  23. Monitor rankings, traffic and AI citations
  24. Keep redirects for at least a year, ideally longer
  25. Prepare a rollback plan