happydigital

How do you migrate a website without losing your Google rankings?

A website migration checklist from a real move: URL inventory, 301 redirect map, launch-day checks, and what to watch in Search Console for 30 days.

By The Happy Digital teamPublished 10 min read

The short answer

Map every old URL that earned clicks or links to its closest new page, as a permanent (301) redirect from the first minute of launch. Keep the titles and content that were earning traffic, confirm Google can reach the new site, and check Search Console daily for two weeks, then weekly for the rest of the first month.

Key takeaways

  • Rankings belong to URLs, not to your domain or your design. Every old page that earned clicks or links needs a destination.
  • Redirect each page to its closest equivalent. Sending everything to the home page usually throws the history away.
  • Have Google test the live site. A firewall can block crawlers while the site looks fine to you.
  • Expect a few weeks of movement, and judge the result on clicks from the countries you sell to.
In this answer

A redesign or a platform move can cost a business the search traffic it spent years earning. It usually goes wrong for a boring reason: the old addresses stop working, and nobody told Google where the pages went.

We moved our own site, happydigital.us, off WordPress in 2026. This is the checklist we used, in the order we used it. None of it needs paid tools. It needs a spreadsheet, access to Google Search Console, a free site crawler, and the patience to check every row.

Why migrations lose traffic

Google ranks individual pages, and it knows each one by its URL, the page’s full web address. Years of links, clicks, and crawl history are attached to those exact addresses.

When a migration changes the addresses, three things tend to break at once:

  • Old URLs return a 404. That’s the code for “page not found”. The page that ranked is gone, so it drops out of results, and every link pointing to it now leads nowhere.
  • Redirects point to the wrong place. A blanket rule sends every old page to the home page. Google often treats that as a missing page (it calls it a soft 404) rather than a moved one.
  • The content that ranked gets rewritten. New copy can be an improvement, but a page that ranked for one thing and now talks about another has to earn its place again.

None of these is a penalty. Google is working with what it finds, which is good news, because it means the fix is mechanical.

First, work out what kind of move it is

Not every move puts rankings at risk in the same way. Find yours, then follow the steps that apply to it. A redirect map lists where each old address now goes (Step 2). Change of Address is a Search Console tool that tells Google a whole domain has moved.

Kind of move Redirect map? Change of Address? Watch for
New host or CDN, same URLs No No A firewall blocking Googlebot (Step 5)
Redesign or new platform, same URLs No No Rewritten content that used to rank (Step 3)
New URLs, on a new platform or the same one Yes No Everything below, Steps 1 to 6
HTTP to HTTPS, or www to non-www One rule for the whole site No Canonical tags still naming the old version
New domain, same paths One rule, each path to the same path Yes Both domains, www and non-www, verified in Search Console by the same Google account

Moving host only? At least a week ahead, lower your DNS records’ time-to-live (TTL) to a few hours, so the switch reaches everyone faster, and keep the old host running until its traffic reaches zero. Both come from Google’s guide to changing hosting.

Changing domain? Also update the links you control: your Google Business Profile, social profiles, directory listings and ad campaigns. Keep the old domain registered.

Doing more than one of these? Google’s advice is to change one thing at a time: move the domain first, then redesign.

Step 1: Take an inventory before you change anything

You can’t redirect a URL you don’t know about. Build one list of every address the old site answers to, from four sources:

  1. Search Console. Open Performance and set the date range to at least six months. Switch the table to the Pages tab and export it. These are the URLs that actually earn impressions and clicks. The export stops at 1,000 rows, so on a bigger site, export one section at a time with a Page filter.
  2. A crawl of the live site. Any free crawler will do. It finds pages Search Console hasn’t reported, plus PDFs, images, and feeds.
  3. The sitemap and the CMS. The old sitemap, and a content export from your CMS (the system you edit the site in) if it offers one, catch pages nothing links to any more.
  4. Search Console’s Links report. Its Top linked pages list, under External links, shows the pages other sites link to. Each one needs a redirect, even if it earns no clicks.

Merge the four and remove duplicates. Expect the list to be longer than the site feels. When we did this for our own site, it ran past two hundred URLs, far more than the menu suggested.

Then sort by clicks. If you sell in one country, take the clicks from a second Pages export with a Country filter added. A page with a thousand impressions from a market you don’t serve matters less than a page with fifty clicks from the one you do.

Step 2: Build the redirect map

A redirect map is a table with two columns that matter: the old URL, and the new URL that replaces it. Every row in your inventory gets one, unless it’s a page you decide to let go (the third rule below). The paths below are examples.

Old URL New URL Why
/web-development/ /services/website-development/ Same service, new address
/portfolio/project-name/ /services/ Page retired, closest parent
/tag/wordpress/ /services/website-development/ Archive with links pointing at it, closest topic
/contact/ /contact/ Unchanged, no rule needed

The five rules

  • One to one where you can. If the new site has an equivalent page, that’s the destination.
  • Closest relative where you can’t. A retired page goes to its nearest parent or its most related page. The home page is the last resort.
  • Let dead pages go. A page with no real equivalent, no clicks from your market and no links pointing at it can return a 404 or a 410, the code for “gone for good”. Google recommends that for content you aren’t moving, and it beats a redirect to something unrelated.
  • No chains. Old URL to final URL in one hop. If A already redirected to B on the old site, point A straight at the new address.
  • Permanent, not temporary. Use a 301, the code for “moved for good” (a 308 works the same way). A 302 means “moved for now”, and Google may keep the old address in its results.
Each page to its closest match /about-us /our-services /news/launch /about /services /blog/launch Everything to the home page /about-us /our-services /news/launch / (home)
First diagram: the history of each page follows it to its new address. Second: three pages collapse into one that matches none of them, and Google may treat all three as missing.

Most platforms accept the map as a plain list of rules. The format varies, but it reads like this:

# old path                  new path                          status
/web-development/           /services/website-development/    301
/portfolio/*                /services/                        301
/tag/wordpress/             /services/website-development/    301

A wildcard (the *) is fine when a whole section really has one replacement.

Step 3: Keep what was ranking

For the pages at the top of your inventory, the ones with real clicks, change as little as the redesign allows:

  • Keep the title tag and main heading close to what they were. Tighten them if you like, but keep the meaning.
  • Keep the substance of the content. If a page ranked for a detailed answer, the new page needs that answer in full.
  • Carry over structured data and image alt text, and give every page a canonical tag (the line in a page’s code that states its official address) that names its new address.
  • Rebuild internal links so they point straight at the new URLs and skip the redirects.

Improve those pages later, one at a time, once the move has settled. Changing the address and the content in the same week makes it impossible to tell which one caused a drop.

Step 4: Run the launch-day checks

Launch on a quiet day for your business, not in your busy season, as Google suggests. Then do these in order, on the live domain:

  1. Request ten old URLs from the top of your inventory. Each should return a 301 (or a 308) to the right page, in one hop.
  2. Confirm every new page returns a 200, the code for “OK”, and that its canonical tag names the final domain. A staging address there is a common leftover.
  3. Check that no page still carries the noindex tag that staging sites are given.
  4. Open robots.txt. It shouldn’t block the site, and it should name the new sitemap.
  5. Submit the new sitemap in Search Console.
  6. Confirm analytics is recording on the new pages.
  7. Add an annotation for the launch date to Search Console’s Performance chart (right-click the chart and choose Add annotation), so any later dip lines up with a cause.

A quick way to check a redirect from a Mac or Linux terminal, without a browser cache getting in the way (any online redirect checker shows the same thing):

curl -sIL https://example.com/old-page/ | grep -iE "^(HTTP|location)"

You want exactly one 301 (or 308), one location line, and then a 200. A second redirect is a chain.

Step 5: Confirm Google can get in

This is the check people skip, because the site loads fine for them.

Your browser and Googlebot (the program Google reads your site with) don’t see the same site. Firewalls, bot protection, and the security modes on a CDN (the service that sits in front of your site) decide visitor by visitor, and some of them challenge anything automated. We’ve seen this first-hand: every page loaded perfectly for people while Search Console reported “Blocked due to access forbidden (403)” for all of them. One security setting at the CDN was challenging every automated visitor, Googlebot included. Turning it off took a minute. Finding it took longer. Google’s guide to changing hosting warns about exactly this: check that your firewall or denial-of-service protection doesn’t block Googlebot.

So ask Google directly. In Search Console, paste a new URL into URL Inspection and run Test live URL. It fetches the page from Google’s own systems and shows you what came back. Do this for the home page and two or three important pages on launch day, and again a week later.

Step 6: Watch the first 30 days

Some movement is normal. Google has to recrawl the old URLs, follow each redirect, and transfer what it knows. For a small site, most of that happens within a few weeks.

Check Where How often
Pages returning 404 Search Console, Indexing > Pages Daily for two weeks
Blocked or erroring pages Search Console, Indexing > Pages Daily for two weeks
Clicks, filtered to your market Search Console, Performance Weekly
Old URLs still in results A site: search Weekly

Old addresses can keep appearing for a while, especially when you search for them directly. Google says that’s normal, and it fades on its own.

A 404 for a page that earned clicks or links is a row missing from your redirect map. Add it the day you see it.

Addresses that never existed, such as mistyped links, can stay as they are, and so can pages you let go on purpose.

Two things to leave alone. Keep the redirects in place for at least a year, which is Google’s own guidance. And don’t judge the migration on total impressions, which can swing in countries you don’t sell to without meaning anything. Clicks from your real market, compared with the same number of weeks before launch, are the number.

If traffic drops anyway

Some wobble in the first few weeks is normal while Google recrawls. A real problem looks different: clicks from your market still falling a month after launch (longer on a site with thousands of pages, which Google recrawls more slowly), or your most important searches no longer bringing clicks to any page of the site. Check these, in this order:

  1. A noindex tag or a robots.txt block left over from staging (Step 4).
  2. Old URLs that earned clicks or links returning a 404, a temporary 302, or a chain of redirects (Step 4).
  3. Googlebot being refused with a 403 (Step 5).
  4. Canonical tags naming the staging site or the old domain (Step 4).
  5. Content cut from the pages that used to rank (Step 3).

To see where it hurts, open the Queries tab of the Performance report, compare the weeks since launch with the same number of weeks before it, and sort by lost clicks. Compare queries, not pages: an old URL always shows a loss once its clicks move to the new address. After a domain change, the weeks before launch are in the old domain’s property. Fix the biggest losses first.


When to get help

If the site has a few dozen pages and you’re comfortable in a spreadsheet, you can run this yourself.

It gets harder with thousands of URLs, a store full of product pages, or revenue that depends on search from one week to the next. In those cases the redirect map is worth having someone build and test before launch.

That work is part of our SEO and performance practice and of every website we build. The site you’re reading went through this same checklist.

Related questions

How long should 301 redirects stay in place?

At least a year. Google asks for a minimum of one year so it can transfer what it knows to the new URLs, and keeping them longer costs next to nothing. If you changed domain, it does mean keeping the old domain registered. Links on other sites keep pointing at the old addresses for as long as those sites exist, so there's rarely a reason to remove a redirect.

Will changing my domain name hurt my rankings?

It doesn't have to. Redirect every old URL to the same path on the new domain, then use the Change of Address tool in Search Console to tell Google directly. Expect a few weeks where results show a mix of old and new addresses.

Do images and PDFs need redirects too?

The ones that earn traffic or have links pointing at them do. Check your Search Console export for file URLs, and check where your brochures and price lists are linked from. A PDF that a partner site links to is a page like any other.

How long does Google take to process a migration?

For a small site, most pages are picked up within a few weeks. Larger sites take longer because Google recrawls them gradually. Submitting the new sitemap and keeping the redirects fast and consistent is what speeds it up.

The practice behind this answerSEO & performanceTechnical SEO, clean markup, and honest speed work, so the right people find you and what they find is fast.See how we handle it
Start here

Is this your question right now?

Tell us what’s slow, manual, or annoying. NDA first if you want one, then a plan in plain English.

Start a project