Website Migration SEO: How to Move a Site Without Losing Traffic
What is a website migration in SEO?
A website migration is any significant change to a site's URLs, domain, platform, structure or protocol that affects how search engines crawl and index it. Good migration SEO maps every old URL to its new equivalent, redirects each one with a 301, tests everything on a protected staging site, and monitors crawling and traffic closely after launch.
Types of website migration
Not every migration carries the same risk. Name the type first, because it decides which steps you need.
| Migration type | Example | URLs change? |
|---|---|---|
| Domain move | oldbrand.in to newbrand.com | Yes, every URL |
| Protocol change | http:// to https:// | Yes, scheme only |
| Structure change | /blog/2024/05/post/ to /guides/post/ | Yes, paths |
| Platform change | Custom PHP site to WordPress or Shopify | Often |
| Redesign | New templates and navigation on the same URLs | Sometimes |
| Combined move | New domain, new platform and new structure together | Yes, all at once |
Combining several changes at once makes problems harder to diagnose. Where the business allows it, split a large migration into stages, such as moving platform first and changing the domain later.
Building the URL map
The URL map is a spreadsheet with one row per old URL and the new URL it should redirect to. It is the most important document in the project.
- Collect every old URL: crawl the live site, export URLs from Search Console and analytics, read your XML sitemaps and pull URLs from server logs.
- Add pages that earn external links, using a backlink tool, so linked pages are not forgotten.
- Match each old URL to the closest equivalent new URL. A product maps to the same product, a category to the same category.
- Where content is removed with no equivalent, mark it for a 404 or 410 rather than redirecting it to the homepage.
- Record the expected status code for each row, then have someone else review the map.
Implementing 301 redirects
A 301 (or 308) is a permanent redirect, and Google treats it as a strong signal that the new URL should replace the old one. Redirect each old URL directly to its final destination. Chains such as A to B to C slow crawling and add points of failure.
For a domain move on Apache where paths stay the same, a single rule in .htaccess on the old domain can redirect everything:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?oldbrand\.in$ [NC]
RewriteRule ^(.*)$ https://www.newbrand.com/$1 [R=301,L]For changed paths, add one-to-one rules generated from the URL map, such as Redirect 301 /blog/2024/05/meta-tags/ https://www.newbrand.com/guides/meta-tags/. Keep redirects in place for as long as possible; Google recommends at least one year.
Testing on a staging site
- Protect staging with HTTP authentication or an IP allowlist so it cannot be indexed. Robots.txt alone does not stop URLs being indexed if they are linked from elsewhere.
- Crawl staging and compare titles, headings, canonicals, structured data and internal links with the live site.
- Check that canonicals and hreflang use the new production domain, not the staging host.
- Confirm no page is left with a
noindextag or a staging-onlyDisallow: /in robots.txt. - Measure page speed on key templates so the new site is not slower than the old one; the Core Web Vitals guide lists the metrics.
Before launch, test the redirect map against staging or the new server. This shell loop reads a two-column CSV of old and new URLs and reports the final URL, status and number of hops:
while IFS=, read -r old expected; do
result=$(curl -s -o /dev/null -L -w '%{url_effective} %{http_code} %{num_redirects}' "$old")
echo "$old -> $result (expected $expected)"
done < redirect-map.csv Launch day and the Change of Address tool
- Deploy the new site and switch on the redirects at the same time.
- Run the redirect test again against production.
- Verify the new domain in Search Console, keeping the old property verified too.
- For a move to a new domain, use the Change of Address tool in the old property. Google requires the old homepage to 301 to the new site before it accepts the request.
- Submit the new XML sitemap in the new property.
- Update links you control: social profiles, business listings, email signatures and major referring sites.
The Change of Address tool is only for moving between domains or subdomains. It is not used for an http to https switch or for path changes within the same domain; redirects alone handle those.
Monitoring after the migration
- Check the Page indexing report in both properties: old URLs should drop out as redirected while new URLs are indexed.
- Watch the Crawl stats report and server logs for spikes in 404 or 5xx responses.
- Compare clicks and impressions for the top pages against a saved pre-launch baseline.
- Recrawl the old URL list weekly for the first month to catch redirects that break after later deployments.
Some fluctuation is normal while Google recrawls the site. A sustained drop for one section usually points to a mapping error, a blocked template or a missing redirect, which an SEO audit of that section will reveal.
Practical exercise: write a migration plan for a small site
Take a site you own with at least twenty pages, or a practice site. Crawl it, export the URLs into a spreadsheet, and design a new URL structure. Fill in the new URL, the expected status code and the reason for each row. Write the redirect rules, set up a password-protected staging copy and run the curl loop against it.
You are done when every old URL has a mapped destination or a deliberate 404, the test shows each redirect resolving in one hop with a 200, and you have a written launch and monitoring checklist. Planning migrations like this is covered in the technical SEO course.
Common mistakes
- Redirecting every old URL to the homepage, which Google tends to treat as a soft 404.
- Launching with the staging robots.txt or noindex tags still in place.
- Leaving redirect chains from earlier migrations instead of pointing old URLs straight to final destinations.
- Removing redirects a few months after launch while old URLs still receive links and visits.
- Changing domain, platform, design and content all at once with no baseline to compare against.
Frequently asked questions
How long does it take Google to process a migration?
It varies with the size of the site and how often Google crawls it. Small sites may settle within weeks, while large sites can take longer. Monitoring the Page indexing report shows progress.
Is a 302 redirect acceptable for a migration?
A 302 signals a temporary move. For a permanent migration, use 301 or 308 so the intent is clear to search engines and browsers.
Should I keep the old domain after moving?
Yes. Keep renewing it and keep the redirects running. If the old domain lapses, its links and redirects are lost and someone else could register it.