Migrate a Site Without Losing Organic Traffic Using a Developer's Checklist.

By · Published · Updated · About 12 min read

On this page (7)
  1. Before launch: 4 to 8 weeks out
  2. On launch day
  3. After launch: keep a pass/fail record
  4. Automate checks on large migrations
  5. Communicate and plan the rollback
  6. Avoid four migration failures
  7. Answer common developer questions

Most catastrophic losses of organic traffic have one cause. A change to URL structure, domain, or platform ships without a redirect map, content parity, and technical validation. Commonly reported figures put the loss from an unplanned migration at 20 to 40% of organic traffic, and some sites never recover.

This checklist is an engineering specification, not a strategy document. Each item is testable, most can be automated, and each has a clear pass or fail criterion. It applies to a domain change, a CMS switch, a URL restructure, a move from HTTP to HTTPS, or a redesign that changes URL patterns. For migration-type choices and failed-recovery diagnosis, use the migration guide. For sprint ownership and stakeholders, use migration planning for product managers. This page is the release checklist.

Before launch: 4 to 8 weeks out

1. Build a complete URL inventory

Crawl the current site with Screaming Frog and export each URL that returns 200. Merge it with four more sources:

The union of these sources is every URL that carries SEO value. A URL left out of the inventory loses its value for good.

Pass: every source URL appears once. Fail: an indexed, visited, linked, or sitemap URL has no inventory row.

Owner: SEO lead. Saved evidence: dated source exports and the deduplicated inventory.

2. Build the redirect map

For each inventory URL, name one destination on the new site with the same or the closest content. Apply these rules:

Keep the map in a spreadsheet with four columns: old_url, new_url, status, and reason. Use 301 for each SEO-relevant redirect. For an intentional 404 or 410, leave new_url empty and record the removal reason.

Pass: every retained URL has one relevant destination; intentional removals have a recorded 404 or 410 reason. Fail: an unexplained omission or default home-page mapping.

Owner: SEO lead and content owner. Saved evidence: reviewed old-to-new map with status and reason columns.

3. Validate content parity

For the top 50 pages by organic traffic, confirm that the new version keeps these elements, or improves them:

Parity keeps the signals that earned each ranking. A content redesign during a URL migration doubles the risk. Separate them when you can.

Pass: the agreed priority sample preserves its useful content and required metadata. Fail: an unapproved removal or missing task.

Owner: content reviewer. Saved evidence: old/new snapshots and the approved comparison.

Export the internal link graph from Screaming Frog. The new site keeps the same structural relationships. A page with 50 internal links on the old site gets a similar number on the new site. A high-traffic page that loses all internal links becomes an orphan and loses value fast.

Pass: no priority page becomes an orphan; all changed links match the reviewed map. Fail: a broken target or unexplained link loss.

Owner: developer and SEO lead. Saved evidence: old/new crawl graphs and the exception review.

5. Configure server-side redirects

Implement redirects on the server or at the edge, not with JavaScript or meta refresh tags. Googlebot follows server-side 301 redirects efficiently. Client-side redirects add delay and can fail to pass signals.

Nginx:

location /old-path/ {
  return 301 /new-path/;
}

Apache (.htaccess):

Redirect 301 /old-path/ https://example.com/new-path/

On Cloudflare or Vercel, use the platform's bulk redirect configuration.

Pass: each mapped redirect returns the configured server or edge status. Fail: a client-only redirect, chain, loop, or wrong destination.

Owner: developer. Saved evidence: deployed redirect configuration and response-header export.

6. Prepare the new XML sitemap

Generate a sitemap for the new URL structure. List only URLs that return 200 on the new site, with no old URLs.

Pass: sitemap URLs return 200 and match their intended self-canonicals. Fail: an old, redirected, missing, or noncanonical URL.

Owner: developer. Saved evidence: sitemap validation and URL/status/canonical crawl.

7. Record baselines

Record these baselines in Search Console and GA4 before launch:

Without baselines, you cannot measure the effect of the migration.

Pass: the dated baselines and source definitions are saved. Fail: an unavailable baseline or mixed reporting scope.

Owner: analytics owner. Saved evidence: finalized exports with date, device, channel, and property definitions.

On launch day

8. Deploy in the lowest-traffic window

Launch when traffic is lowest for your main audience, often between 2 and 5 a.m. local time. A problem then affects fewer users, and the team has time to verify before peak hours.

Pass: the release window, operator, and rollback owner are confirmed. Fail: nobody can verify or restore the release.

Owner: release manager. Saved evidence: approved release schedule and contact record.

9. Turn on all redirects at once

Do not deploy redirects in stages. Each redirect goes live with the new site. A partial rollout leaves a window in which some old URLs return 404 while others redirect, and Google can drop the unreachable pages.

Pass: new pages and their redirect configuration ship in the same release. Fail: the release serves unmapped old URLs.

Owner: release developer. Saved evidence: deployment identifier and redirect-config version.

10. Verify each redirect

Test each row against its recorded status. For 301 rows, request the old URL without following redirects. Confirm the mapped Location, then request that destination without following another redirect and confirm 200. For removal rows, confirm the recorded 404 or 410 with no redirect.

For a quick shell check, export only the 301 rows to headerless 301-map.csv with old_url,new_url columns and no embedded commas. This checks their first response; the Python example below also checks final responses and removals:

while IFS=, read -r old new; do
  read -r status location < <(curl -s -o /dev/null -w "%{http_code} %{redirect_url}" "$old")
  if [ "$status" != "301" ] || [ "${location%/}" != "${new%/}" ]; then
    echo "FAIL $old -> $location ($status), expected $new"
  fi
done < 301-map.csv

Pass: each redirect row returns its mapped 301 in one hop to a 200 page; each removal returns its recorded 404 or 410. Fail: any wrong status, target, chain, or unreachable retained page.

Owner: release developer. Saved evidence: complete map test with status, Location, final URL, and final status.

11. Submit the new sitemap

Submit the new sitemap in Search Console within an hour of launch. For a domain change, add and verify the new domain property before launch day.

Pass: the sitemap submission names the verified production property and new URLs. Fail: the wrong property or an old sitemap is submitted.

Owner: SEO lead. Saved evidence: Search Console submission receipt and sitemap URL.

12. Test canonical tags

Each page on the new site carries a self-referencing canonical:

<link rel="canonical" href="https://newdomain.com/new-path/">

Pass: every retained final page has its intended self-canonical. Fail: a canonical pointing to an old URL, redirect, or unrelated page.

Owner: SEO reviewer. Saved evidence: final response URL and canonical extracted from the same crawl.

13. Validate robots.txt

A common migration error is the staging robots.txt, which blocks all crawlers, going live in production. Confirm that the production file allows crawling and lists the sitemap:

User-agent: *
Allow: /
Sitemap: https://newdomain.com/sitemap.xml

Pass: important pages and resources are crawlable, with no unintended page-level or header noindex. Fail: a staging block or indexing directive remains.

Owner: release developer. Saved evidence: robots.txt, response headers, and page meta-directive export.

14. Check HTTPS

For a move from HTTP to HTTPS, confirm four things:

Pass: HTTP mappings reach the intended HTTPS pages, certificates cover the used hosts, and no mixed content remains. Fail: an invalid certificate, wrong destination, or blocked resource.

Owner: infrastructure owner. Saved evidence: TLS, response-header, and mixed-content checks.

After launch: keep a pass/fail record

After launch: keep a pass/fail record
CheckOwnerSaved evidenceFail condition
Old-to-new mapRelease developerFull response export from every map rowWrong status, Location, or final response
Self-canonicalSEO reviewerFinal URL and canonical crawlCanonical differs from intended final URL
Indexing directivesRelease developerHeaders, meta tags, robots.txtUnintended noindex or crawl block
Priority page taskContent ownerRendered before/after reviewMissing walkthrough, content, or conversion path
Rollback readinessRelease managerTested restore steps and verified prior artifactArtifact unavailable or restore test fails

Check the critical responses immediately, then daily during the first week. Review finalized search and conversion trends at the agreed later checkpoints. Save the date and result of each check. Search Console data can lag, so use request tests and server logs for immediate failures.

Use migration-type and recovery diagnosis to investigate a traffic decline after the release checks pass. Use the product-manager plan for sprint ownership. A fixed recovery date is not a release pass condition.

Automate checks on large migrations

Scripted redirect verification. For thousands of URLs, manual checks are impractical. Run a script like this one each hour for the first 48 hours. A failure found in hours does far less damage than one found after a week of crawling.

import csv
from urllib.parse import urljoin
import requests

def verify_redirects(map_file, output_file):
    results = []
    with open(map_file) as f:
        for row in csv.DictReader(f):
            expected_status = int(row['status'])
            result = {
                'old_url': row['old_url'], 'expected_url': row['new_url'],
                'expected_status': expected_status, 'reason': row['reason'],
                'actual_url': '', 'status': 0, 'final_status': '', 'match': False,
            }
            try:
                resp = requests.get(row['old_url'], allow_redirects=False, timeout=10)
                result['status'] = resp.status_code
                location = resp.headers.get('Location', '')
                if expected_status == 301:
                    actual = urljoin(row['old_url'], location) if location else ''
                    result['actual_url'] = actual
                    if resp.status_code == 301 and actual == row['new_url']:
                        final = requests.get(actual, allow_redirects=False, timeout=10)
                        result['final_status'] = final.status_code
                        result['match'] = final.status_code == 200
                elif expected_status in (404, 410):
                    result['match'] = resp.status_code == expected_status and not location
            except requests.RequestException as e:
                result['actual_url'] = f'ERROR: {e}'
            results.append(result)

    fields = ['old_url', 'expected_url', 'expected_status', 'reason',
              'actual_url', 'status', 'final_status', 'match']
    with open(output_file, 'w', newline='') as f:
        writer = csv.DictWriter(f, fieldnames=fields)
        writer.writeheader()
        writer.writerows(results)

    failed = [r for r in results if not r['match']]
    print(f'Verified {len(results)} map rows. {len(failed)} failures.')
    return failed

Content parity audits. For large sites, build a comparison tool. It fetches the old page, from a pre-migration snapshot or the Wayback Machine, and the new page. It compares the title, meta description, H1, internal link count, and structured data. It flags each new page that has at least 20% fewer words than the old one. This catches the most common silent failure: pages that redirect correctly but serve less content.

Crawl monitoring. Conductor Website Monitoring (formerly ContentKing) alerts in real time on changes to titles, meta descriptions, canonicals, and indexability. Lumar (formerly DeepCrawl) compares scheduled crawls. Without those tools, run Screaming Frog crawls at 1 hour, 24 hours, 72 hours, and 7 days after launch. Compare each crawl with the pre-launch crawl, and investigate each difference that the plan does not explain.

Communicate and plan the rollback

Internal teams. Brief engineering, content, marketing, support, and sales. Each team needs to know what changes and when, what can break for a short time, and whom to contact. Sales needs advance notice when client-facing URLs change, because a link to a prospect that returns 404 damages the relationship.

External parties. Notify API consumers, documentation sites, and partners that link to specific URLs, and send them the redirect map. Redirects keep links working, but direct links are more reliable. For a major domain change, publish an announcement and email subscribers, which reduces confusion in brand search.

Rollback. Document and test the restore path before launch. Name the owner, prior artifact, configuration versions, and restoration checks. A critical broken destination or widespread unintended noindex can trigger rollback immediately. Percentage thresholds such as 5% redirect failures are illustrative, not universal. Set the actual trigger from site risk, and save the failing response evidence. Confirm the prior version works after restoration.

Avoid four migration failures

Redirect loops. A redirects to B, and B redirects back to A. Crawlers stop and log an error. Test each redirect for loops.

Redirect chains. Old URL to intermediate URL to final URL. Google follows up to 10 hops, but each hop adds latency and a point of failure. Collapse each chain to a single hop. The redirect chains guide for developers shows how to find and fix them.

Soft 404s. The new site returns 200 for URLs that should not exist, with a generic "not found" page. Google treats those as soft 404 errors. Return a real 404 or 410.

Lost hreflang. International sites that lose hreflang during the move can show the wrong language version to users. Audit hreflang on each language version after launch.

Answer common developer questions

How long must redirects stay live? Indefinitely for a domain change. For path changes on the same domain, at least 12 months. External links to old URLs depend on them; removing a redirect turns those links into dead ends.

301 or 302? Use 301 for a migration. A 301 tells Google the move is permanent and to show the new URL. A 302 says the move is temporary, so Google can keep the old URL in its index for longer. The HTTP status codes guide covers each code.

What about pages with no equivalent? Redirect to the most relevant parent or category page. A redirect to the home page tells Google little, and Google can treat it as a soft 404. If the content is gone for good, return 410.

Should the redesign ship with the migration? No. Separate them by at least 8 weeks. If traffic drops after a combined launch, you cannot tell whether the redirects, the content, or the design caused it.

What about URL parameters? Map the parameter combinations that Google crawls most, such as ?category=shoes&sort=price, to their clean equivalents. The Search Console URL Parameters tool was retired in April 2022, so handle the rest on the site. Parameters that do not change content, such as session IDs and tracking codes, get a canonical to the clean URL.

New analytics property or the same one? Keep the existing GA4 property and update the tracking code on the new site. For a domain change, add the new domain to the existing data stream. Or add a stream in the same property. A new property loses the historical data that you need to measure the migration.

Keep a record of developer's traffic-preserving site migration checklist

Next steps for developer's traffic-preserving site migration checklist

Topic map for developer's traffic-preserving site migration checklist

Every page in this topic

  1. See which SEO software companies took outside money, and what it means for you.
  2. Semrush CTO priorities: what Semrush says, and what your team should control.
  3. Ahrefs vs Semrush vs Moz: choose by the SEO work you do
  4. Choose a rank tracking tool that fits your team's size, focus, and budget
  5. Plan SEO in quarterly cycles so quick wins, technical fixes, and content plays all land
  6. Map your SEO career path from coordinator to VP so each move builds the skills the next level needs
  7. Use role-specific SEO message templates so developers, executives, and clients act on your requests
  8. Build an SEO moat competitors cannot copy quickly so organic acquisition stays cheap as your category matures
  9. Protect organic rankings after layoffs so a smaller team keeps traffic stable
  10. Decide when SEO should take budget from paid ads at your startup
  11. Evaluate SEO candidates with interview questions that need no SEO knowledge
  12. Assess your SEO program's maturity stage and plan the next step
  13. Build an SEO responsibility matrix so every task has one owner
  14. Assign SaaS SEO work by role so the organic channel stops stalling
  15. Turn SaaS user feedback into SEO content that drives trials
  16. Compare SEO pay offers by level, company type, and equity risk
  17. Assess SEO skills by level to close the gap before your next promotion
  18. Spot SEO snake oil before you sign an agency contract
  19. Fit SEO work into two-week sprints without stalling feature delivery
  20. Hire your SEO team in the order your bottlenecks appear
  21. Prioritize SEO technical debt by traffic, impact, and engineering effort
  22. Add SEO tests to your CI/CD pipeline to catch ranking breaks before deploy
  23. Match SEO tools to each role so you stop paying for unused licenses
  24. Match SEO investment to your funding stage from seed to Series C
  25. Recognize SEO vendor red flags before you commit the budget
  26. Split your marketing budget between SEO and paid search by stage and time horizon
  27. Use server-side rendering to get JavaScript pages indexed and ranked
  28. Migrate a site without losing organic traffic using a developer's checklist
  29. Run a site migration as a product launch so organic traffic survives
  30. Run your first 90 days of startup SEO and prove that organic traffic converts

More in SEO by role

Neighboring topics

Services for this work