Tapio Kauranen

Website migration SEO: redesign without losing rankings

A website redesign costs you rankings when Google cannot find the old pages at their new addresses, or when important content gets lost on the way. You can prevent both:

  • Map the old addresses
  • Redirect them to the new ones with 301 redirects
  • Check the technical SEO before launch

This guide walks through a website migration step by step. Each section has a demo where you can try the idea yourself, and there is a checklist at the end.

The example is my own website, which moved from WordPress to Astro on 29 September 2026: how the move went.

What is a website migration, and why do rankings drop?

A website migration is a change that affects the whole site at once. The most common ones are:

  • a change of platform, for example from WordPress to another system or from a website builder to WordPress
  • a change of domain when the company name changes
  • a change of URL structure when pages get new addresses
  • a redesign of the look and the content
  • a move from http to https.

A redesign does not lower rankings by itself. The drop usually comes from one of these:

  • old addresses return a 404 error, so the pages drop out of the search results and links from other sites break
  • headings, texts or internal links change or disappear
  • the blocks of the staging site are left on at launch.

Some fluctuation will still happen. According to Google’s guide, visibility may vary during the move, and rankings settle over time.

Try the demo: choose what changes in the redesign to see what Google notices and what you need to do.

What changes in the redesign?

Example: the price list page of Kampaamo Kulma, a made-up hair salon.

Before
https://kampaamokulma.fi/hinnasto/
After
https://kampaamokulma.fi/palvelut/hinnasto/

What Google notices Addresses change

  • Addresses (note)Change. Every old address needs a permanent 301 redirect to the new one.
  • Content (note)Changes. Compare headings, texts and links with the old ones before launch.
  • Technology (note)Rebuilt: robots.txt, sitemap, canonical, structured data and speed.
  • Domain (OK)Same.

The addresses change, so the most important job is the redirect map. Without it the old pages return a 404 error and drop out of the search results.

Step 1: before the move

SEO audit before a migration: map every address

Before you move anything, you need two things: a list of all the old addresses and a baseline to compare the results with.

The address list. No single source finds every address, so build the list from these:

  • a crawler such as Screaming Frog, which follows the links on the site
  • the sitemap
  • the search performance and indexing reports in Search Console
  • the landing pages in your analytics
  • links from other sites: the links report in Search Console or a link tool such as Ahrefs.

The baseline. Export the pages and queries with their clicks and impressions from Search Console, plus the rankings of the most important search terms. Without them you will not know what changed after the move.

Fix the errors the audit finds at the same time, so they do not move to the new site. Read more: SEO audit.

Try the demo: select sources and see which old addresses each one finds.

Where do you find the old addresses?

Example.

Old addresses 7/10 found

  • /Home pageCrawlSitemapSearch ConsoleAnalyticsLinks
  • /hinnasto/Price listCrawlSitemapSearch ConsoleAnalyticsLinks
  • /palvelut/varjays/ColoringCrawlSitemapSearch ConsoleAnalytics
  • /yhteystiedot/Contact pageCrawlSitemapSearch ConsoleAnalytics
  • /blogi/kesan-hiustrendit/Popular blog postCrawlSitemapSearch ConsoleAnalyticsLinks
  • /en/English home pageCrawlSitemapSearch Console
  • /tag/varjays/Tag page that is not in the sitemapCrawl
  • /tarjous-kevat-2021/Old campaign page the site no longer links to (not found in the selected sources)Search ConsoleAnalyticsLinks
  • /wp-content/uploads/hinnasto.pdfPDF price list that other sites link to (not found in the selected sources)Search ConsoleLinks
  • /blogi/hiustrendit-2019/Post that has already moved once and is still linked to (not found in the selected sources)Links

The selected sources found 7/10 addresses. Missing: old campaign page the site no longer links to; PDF price list that other sites link to; post that has already moved once and is still linked to. If they are not redirected, their visitors and links end up on a 404 page.

Redirect map: a new address for every old one

A redirect map is a table that gives every old address a new one. When a visitor or Google opens the old address, the server redirects them to the new one.

Google’s guide to moving a site gives clear rules for the map:

  • A permanent redirect. Use a server-side 301 or 308 redirect. A temporary 302 redirect can leave the old address in the search results.
  • No chains. Redirect straight to the final address. Googlebot follows at most ten redirects in a row.
  • A matching page. Do not redirect everything to the home page: Google may treat that as a soft 404 error.
  • A long lifetime. Keep the redirects in place as long as possible, generally for at least a year.

If an old page has no counterpart, let it return a 404 error.

Try the tool: the map checks every row and writes the redirect rules ready to copy.

Build a redirect map

Example: the new website of Kampaamo Kulma, a made-up salon.

Pages of the new site

  • /
  • /palvelut/
  • /palvelut/hiustenleikkaus/
  • /palvelut/varjays/
  • /palvelut/hinnasto/
  • /ajanvaraus/
  • /yhteystiedot/
  • /blogi/
  • /blogi/kesan-hiustrendit/

Redirect map 3 errors

  1. NotechainChain: /hinnasto/ → /hinnat/ → /palvelut/hinnasto/. Redirect straight to /palvelut/hinnasto/.
  2. OKPermanent redirect straight to /palvelut/hinnasto/.
  3. Note302Temporary redirect: Google may keep the old address in the search results. Use a 301 redirect.
  4. OKPermanent redirect straight to /yhteystiedot/.
  5. ErrorloopThe redirect loops back: /varaus/ → /varaus-aika/ → /varaus/. The page never opens.
  6. ErrorloopThe redirect loops back: /varaus-aika/ → /varaus/ → /varaus-aika/. The page never opens.
  7. Noteto home pageRedirect to the home page: Google may treat it as a soft 404 error. Redirect to a matching page, or if there is none, remove the row.
  8. Error404The page /blogi/hiustrendit/ is not on the new site: the visitor gets a 404 error.
  9. OKPermanent redirect straight to /palvelut/hinnasto/.

The button fixes chains and 302 redirects. Loops, missing pages and redirects to the home page need a decision: choose a matching page for them.

Redirect rules

# .htaccess: Kampaamo Kulma redirects (example)
# FIX: chain
Redirect 301 /hinnasto/ /hinnat/
Redirect 301 /hinnat/ /palvelut/hinnasto/
# FIX: 302
Redirect 302 /varjaykset/ /palvelut/varjays/
Redirect 301 /yhteys/ /yhteystiedot/
# FIX: loop
Redirect 301 /varaus/ /varaus-aika/
# FIX: loop
Redirect 301 /varaus-aika/ /varaus/
# FIX: to home page
Redirect 301 /tarjous-kevat-2021/ /
# FIX: 404
Redirect 301 /blogi/kesan-hiustrendit-2020/ /blogi/hiustrendit/
Redirect 301 /wp-content/uploads/hinnasto.pdf /palvelut/hinnasto/

In Apache the lines go into the .htaccess file in the root folder of the site. In WordPress you can also make the same redirects with the Redirection plugin.

Step 2: building

Keep the staging site out of Google and open it at launch

A new site is usually built on a test server. It must not end up in the search results, because the unfinished site would then compete with the old one for the same searches.

The safest way is a password. robots.txt alone is not enough: according to Google, an address blocked by robots.txt can still be indexed if it is linked from elsewhere. A noindex tag or a password keeps a page out.

At launch the same protection works against you. If the blocks stay on, the site looks finished to visitors, but Google cannot put it in the search results. Check at least these:

  • robots.txt does not block crawling (Disallow: /)
  • the pages have no noindex tag
  • the canonical points to the live address, not to the test server
  • the WordPress option “Discourage search engines from indexing this site” under Settings → Reading is not checked.

Try the demo: switch the setup and see what Google does in each case.

Staging site or live site?

Staging

Log in to see the page.

Username and password

robots.txt

User-agent: *
Disallow: /

Page <head>

<meta name="robots" content="noindex, nofollow">

What Google does Hidden

  • Password Only logged-in users see the pages. Google cannot get to them.
  • noindex An extra safeguard: the page is not indexed even if it is found.
  • robots.txt Blocks crawling, but is not enough on its own: a blocked address can still end up in the search results if it is linked to.

Right for a staging site. The unfinished site does not end up in the search results to compete with the old one.

Blocks left on

Price list

Men’s haircut €29

robots.txt

User-agent: *
Disallow: /

Page <head>

<meta name="robots" content="noindex, nofollow">
<link rel="canonical" href="https://testi.kampaamokulma.fi/hinnasto/">

What Google does Google cannot get to the pages

  • robots.txt Blocks Google from crawling any page.
  • noindex Tells Google to drop the page from the search results as soon as it sees the tag.
  • Canonical Points to the staging site, which Google cannot read.

The launch failed silently: the site looks right to visitors, but Google cannot put it in the search results.

Launched correctly

Price list

Men’s haircut €29

robots.txt

User-agent: *
Allow: /

Sitemap: https://kampaamokulma.fi/sitemap.xml

Page <head>

<title>Price list – Kampaamo Kulma, Tampere</title>
<link rel="canonical" href="https://kampaamokulma.fi/hinnasto/">

What Google does Google can get to the pages

  • robots.txt Allows crawling and gives the sitemap address.
  • noindex Removed: the page may appear in the search results.
  • Canonical Points to the live address.

Ready. Google can fetch the pages, and every page states its own, correct address.

Keep what Google ranked the pages for

Google ranked the old pages based on what they said and how they linked to each other. If the redesign changes these, the new page is not the same page to Google, even if the redirect works.

Compare the most important pages with the old ones before launch:

  • title and description: the same search terms and town
  • headings and text: the content does not get shorter, and prices do not move into an image
  • internal links: the menu and the links in the text still lead to the important pages, straight to the new addresses
  • images: alt texts are kept, and old image addresses are redirected
  • structured data and hreflang: update them to the new addresses.

In its guide, Google reminds you that every new page needs a canonical address that points to the page itself, and that hreflang tags must be updated to the new addresses. I cover language versions in the international SEO guide.

Try the demo: compare the first and the corrected version of a pricing page with the old one.

Compare the old and the new page

The price list page of Kampaamo Kulma, a made-up salon, before and after a redesign. Example.

First version

Old → new 8 items got worse

  • Title Old Price list – Kampaamo Kulma, Tampere New Price list The company name and the town disappeared.
  • Description Old Haircuts, coloring and shaves in the center of Tampere. Prices from €29. New Missing The search result text is left for Google to choose.
  • H1 heading Old Price list New Our services The heading no longer says what the page is about.
  • Text Old 420 words, prices as text New 140 words, prices as an image The prices moved into an image, and only a third of the text was left.
  • Internal links to the page Old 12 links New 3 links The links to the price list are gone from the menu and the blog.
  • Images Old 6 images, alt texts New 6 images, no alt texts, new addresses The old image addresses return a 404 error.
  • Structured data Old HairSalon: address, opening hours, prices New Missing The new theme does not output it.
  • hreflang Old fi and en New Missing The English page is no longer the pair of the Finnish one.

The page looks better, but Google sees a weaker page than before. This is exactly where the drop comes from.

Fixed version

Old → new Everything was kept

  • Title Old Price list – Kampaamo Kulma, Tampere New Price list – Kampaamo Kulma, Tampere
  • Description Old Haircuts, coloring and shaves in the center of Tampere. Prices from €29. New Haircuts, coloring and shaves in the center of Tampere. Prices from €29.
  • H1 heading Old Price list New Price list
  • Text Old 420 words, prices as text New 430 words, prices as text
  • Internal links to the page Old 12 links New 14 links
  • Images Old 6 images, alt texts New 6 images, alt texts, old addresses redirected
  • Structured data Old HairSalon: address, opening hours, prices New HairSalon: address, opening hours, prices
  • hreflang Old fi and en New fi and en, new addresses

The look was renewed, but everything Google ranked the page for was kept.

Step 3: launch day

Launch day: turn on the redirects and check everything

On launch day you do three things, in this order:

  1. Open the site to Google: remove the password, noindex and the robots.txt block.
  2. Turn on the redirects at the same moment the new site goes live.
  3. Check right away: old addresses, robots.txt, canonical, sitemap and analytics.

Test at least the addresses that bring the most visitors and the ones other sites link to. Each one should end up, in a single redirect, on a page that responds normally (status code 200).

Launch early in the week if you can. That leaves time to fix errors before the weekend.

Try the demo: run the launch day check, fix the errors and run it again.

Launch day check

The new website of Kampaamo Kulma, a made-up salon, after launch. Example.

Settings 1 error

  • robots.txt allows crawling The Disallow: / line was left over from staging.
  • No noindex tag None of the tested pages has noindex.
  • Canonical points to the live address kampaamokulma.fi, not the test address.
  • The sitemap responds /sitemap.xml lists the new addresses.
  • Analytics records the visits The tracking code is on every page template.

Old addresses 3/6 OK

  • / 200 no redirect
  • /hinnasto/ /palvelut/hinnasto/ 200 2 redirects
  • /varjaykset/ /palvelut/varjays/ 200 1 redirect
  • /yhteys/ /yhteystiedot/ 200 1 redirect
  • /blogi/kesan-hiustrendit-2020/ /blogi/hiustrendit/ 404 1 redirect
  • /wp-content/uploads/hinnasto.pdf 404 no redirect

Three errors and one warning: robots.txt blocks crawling, two old addresses end in a 404 error and the price list redirect goes through a chain. Fix and run again.

Test your own old addresses

while read -r url; do
  curl -s -o /dev/null -L -w "%{http_code} %{num_redirects} $url -> %{url_effective}
" "$url"
done < old-addresses.txt

Save the old addresses in a file called old-addresses.txt, one per line, and run the command in a terminal (Mac, Linux or Git Bash on Windows). Each line shows the status code, the number of redirects and the address where the visitor ends up.

Step 4: after launch

After launch: Search Console, logs and indexing

Processing a move takes time. According to Google, most pages of a small or medium-sized site move in the index within a few weeks; larger sites take longer.

Do these in the first weeks:

  • Submit the new sitemap to Search Console.
  • Use the Change of Address tool if the domain changed. You do not need it when you move from http to https, change the www address or change addresses within the same domain.
  • Request indexing for the most important pages with URL Inspection in Search Console. The number of requests is limited per day, so pick about the ten most important pages a day.
  • Watch for 404 and 5xx errors in the server logs and in the Search Console indexing report. The logs show errors immediately, Search Console with a delay.
  • Compare with the baseline every week: clicks, impressions and the rankings of the most important search terms.

Fix server errors right away: according to Google, 5xx errors make it crawl the site less. You can also find lost pages in Google’s index.

Try the demo: filter the errors from a server log and see what they tell you.

Find the errors in the server log

The server log of Kampaamo Kulma on the morning after launch. Example lines.

  • 301 /hinnasto/ 08:02 · Googlebot
  • 200 /palvelut/hinnasto/ 08:02 · Googlebot
  • 404 /blogi/kampausideat/ 08:05 · Googlebot
  • 200 / 08:07 · Chrome
  • 404 /wp-content/uploads/2019/05/kulma-sisalta.jpg 08:09 · Chrome
  • 503 /ajanvaraus/ 08:11 · Googlebot
  • 301 /varjaykset/ 08:12 · Safari
  • 404 /blogi/kampausideat/ 08:15 · Firefox
  • 500 /ajanvaraus/ 08:20 · Chrome
  • 200 /sitemap.xml 08:21 · Googlebot

What the lines tell you 10 requests

Among them are three 404s and two server errors.

The same filters for your own log

# 404 errors, most common first
awk '$9 == 404 {print $7}' access.log | sort | uniq -c | sort -rn | head -20

# Server errors (5xx)
awk '$9 ~ /^5/ {print $7}' access.log | sort | uniq -c | sort -rn | head -20

The commands work with the usual log format of Apache and Nginx. They list the error addresses, the most common first.

Example: tapiokauranen.com moved from WordPress to Astro

I moved my own website from WordPress to Astro on 29 September 2026. Astro turns the pages into ready-made HTML. On 30 November 2026 I moved the site back to WordPress, and it runs on an Alwaysdata server.

In the move to Astro:

  • the content and the addresses were kept, and old, removed addresses were redirected with 301 redirects
  • 167 images got descriptive names, and their 709 old image addresses were redirected to the new ones
  • page titles and descriptions were rewritten after the SEO audit
  • the Astro site got its own analytics and a 41-point technical SEO audit.

On 2 October 2026 the audit showed zero errors and a health score of 98/100. The sitemap listed 158 pages at the time.

Reindexing was still slow: three days after the move Google had recrawled only 21 of the 158 pages. It is worth requesting indexing for the most important pages in Search Console.

tapiokauranen.com: from WordPress to Astro

My move to Astro in figures, with a few redirect lines from that time.

29 Sep 2026
the move from WordPress to Astro, addresses unchanged
709
old image addresses redirected when 167 images got descriptive names
41
technical SEO checks in the audit
98/100
health score on 2 October 2026, no errors

Pages Google had recrawled 21/158

Three days after the move Google had recrawled 21 of the 158 pages in the sitemap.

.htaccess: an old address and the old sitemap to the new ones

RewriteRule ^mina/?$ /tapio-kauranen/ [R=301,L]
RewriteRule ^sitemap_index\.xml$ /sitemap-index.xml [R=301,L]

wp-content/uploads/.htaccess: an image got a descriptive name

Redirect 301 "/wp-content/uploads/black-bg_cut.png" "/wp-content/uploads/tapio-kauranen-kadet-ristissa-valkoinen-t-paita.png"

Website migration checklist

The checklist pulls the guide together. Some items are done weeks before launch, others only after it.

Tick off what is done, and the list shows what comes next. Each item takes you to the section of the guide that explains it.

Migration checklist

Checklist

Frequently asked questions about website migration

How long does it take for rankings to recover after a migration?

According to Google, most pages of a small or medium-sized site move in the index within a few weeks; larger sites take longer. Rankings may fluctuate in the meantime.

After I moved my own site to Astro on 29 September 2026, Google had recrawled 21 of its 158 pages in three days, so you need patience.

How long should redirects be kept?

Google advises keeping them as long as possible, generally for at least a year. Links from other sites to the old addresses do not disappear, so it pays to keep the redirects for as long as the site exists.

Do I need the Change of Address tool in Search Console?

Only when the domain or subdomain changes. According to Google it is not needed when you move from http to https or from a www address to one without www, or when addresses change within the same domain.

Can all old pages be redirected to the home page?

It is not a good idea. Google may treat pages redirected to the home page as soft 404 errors, and visitors do not find what they were looking for. Redirect each old page to the matching new page. If there is no counterpart, let the address return a 404 error.

What does an SEO audit before a migration include?

A list of all the old addresses, the baseline (queries, clicks and rankings) and the technical errors worth fixing before the move. The redirect map is built on them.

Should the design, content and addresses be renewed at the same time?

The less that changes at once, the easier it is to find out where a possible drop comes from. If the addresses can stay the same, keep them.

When my own site moved, the platform changed but the addresses stayed.

How much does migration SEO cost?

Technical SEO is part of the Coding SEO Consultant service, which costs €760/month (excl. VAT). There is no start-up fee, and you can cancel any time.

In the free SEO check we look at what your redesign needs to take into account.

A technical SEO specialist for your website migration

Technical SEO is part of the Coding SEO Consultant service. In the free SEO check we look at what your redesign needs to take into account.

Read more: technical SEO and SEO audit.

Recommended

Coding SEO Consultant

€760/month

Fixes and SEO every month, and website maintenance and Google Ads for the same price.

Typically 8 hours a month. Price excl. VAT. No start-up fee. Cancel any time.

Book a free SEO check See price and contents

The price includes

  • Search engine optimization New content and fixes every month.
  • AI optimization Every month I ask AI the same questions and record whether your business is mentioned.
  • Website maintenance and development Maintenance, updates and further development are included.
  • Google Ads Campaign management and optimization. The ad budget is paid straight to Google.
  • A check-in meeting every two weeks We look together at how your marketing went and what to do next.

Need only one thing? Custom quote

Examples of results

Technical SEO

What a technical audit checks and how the errors are fixed.