Technical SEO

How to set up redirects for a site migration

Crawl every URL currently returning 200, map each to its closest equivalent on the new site, and deploy them as single-hop 301s before anything else changes. A missing redirect map is the one migration mistake that is not recoverable.

Written by Anas Bin Masud 8 steps About 4 hours 277 words

Before you start

  • A crawler
  • Access to both the old and new sites
  • Search Console data export

The steps

  1. Step 1: Crawl the old site completely

    Export every URL returning 200. This list is the migration.

  2. Step 2: Export supporting data

    Search Console performance for 16 months, current rankings for your top terms, and the backlink profile.

  3. Step 3: Map old to new

    Each old URL to the closest equivalent. Where none exists, decide deliberately: closest parent, or 410.

  4. Step 4: Never map en masse to the home page

    Google treats that as a soft 404, which discards exactly the equity you were preserving.

  5. Step 5: Implement as single-hop 301s

    No chains. http → https → www → final is three hops doing one job.

  6. Step 6: Test against the full export

    Every old URL, not a sample. Confirm each resolves in one hop to the intended destination.

  7. Step 7: Deploy redirects with the new site

    Not afterwards. The gap between launch and redirects is where traffic is lost.

  8. Step 8: Monitor for 90 days

    Coverage weekly, 404 logs weekly, and your recorded rankings against the baseline.

Keep them for at least a year

Removing redirects at six months undoes the migration. Search engines need repeated confirmation, and external links pointing at old URLs do not update themselves.

The special case that is trivial

Migrating off a site with no rankings, no traffic and no links. There is nothing to preserve, so move immediately — the cost only rises as more cards, invoices and profiles carry the old address.

The background behind this

Migrating a site without losing what it took years to earn covers the reasoning in about 3 minutes — free, ungated, written from client work.

Who wrote this

Anas Bin Masud builds e-commerce sites and does technical SEO for businesses in the UK, Canada, Ireland and Pakistan. These procedures are the ones I run on client work, written down rather than invented — including the ones where the honest answer is that the fix is not available on your current hosting.

Related procedures

All 64 how-to guides →

Want this done rather than done yourself?

Send the brief and you get a reply within one business day — either questions, or a scoping call. If your project is not something I should take on, I will say so then.

Response
Replies within 1 business day
Hours
Mon–Fri, 09:00–18:00 PKT — overlaps 05:00–14:00 UK, 00:00–09:00 US Eastern
Booking
Booking projects from October 2026
WhatsApp — opens a chat with +92 346 5348466 in a new tab