RedirectPath.dev
Tools

Domain migrations · Practical guide

How to check redirects during a domain migration

A domain migration succeeds when an old link still reaches the content its visitor expected. Write the old-to-new URL mapping first, make both domains serve their required responses and verify representative journeys before release. A working redirect is one part of the move; it does not guarantee immediate search indexing or unchanged rankings.

Trace an old URL to its mapped destination

Suppose a guide moves from https://old.example/docs/install?lang=en to https://new.example/help/install?lang=en. Changing /docs/ to /help/ is valid because the mapping deliberately identifies the replacement content. A redirect to the new homepage would lose that relationship. Start testing from the old URL, including a harmless parameter that affects the page.

This macOS/Linux command performs GET requests, prints the response headers and final URL, and saves the final body to migration-check.html in the current directory. Use an unused filename because curl overwrites it. Replace both example hosts with the domains you control. The saved HTML is evidence of the returned content; inspect it as text and verify the actual page separately in a browser.

curl -q -sS -L --max-redirs 10 --max-time 30 \
  -D - -o migration-check.html \
  --write-out '\nFinal: %{url_effective} (%{http_code})\n' \
  'https://old.example/docs/install?lang=en'

# Expected destination from the migration map:
# https://new.example/help/install?lang=en
  1. Open the new URL directly and confirm valid TLS, the intended content and the required language or filter value.
  2. Run the GET trace from the old URL. Compare each Location and the final URL with the mapping; investigate loops, unexpected hosts and unnecessary detours.
  3. Inspect the saved body and the browser page. Confirm the guide appears rather than a login screen, challenge or missing-page message returned with status 200.

Reference: curl: redirects, response headers and saved output

Give each old URL an appropriate destination

Build a mapping from the old sitemap, application routes and important incoming links. Include downloads and linked assets. For each row, record the old URL, intended new URL and a simple content check. A domain-wide hostname substitution is suitable only when the paths and resources genuinely remain equivalent.

Document which query parameters still matter. Keep or deliberately translate language, product and filter values; discard tracking parameters only after confirming that they do not change the resource. If content was removed without a suitable replacement, return an appropriate 404 or 410 instead of sending unrelated pages to the homepage. Several old pages may share a destination when their content was genuinely consolidated there.

Give each old URL an appropriate destination
Old resourceMapped destinationCheck
/docs/install?lang=en /help/install?lang=en on the new host The installation guide remains in English.
/pricing /plans on the new host The replacement explains the corresponding plans.
/retired-offer with no replacement No unrelated destination A useful missing-page response uses 404 or 410.

Reference: Google Search Central: URL mapping and relevant redirects

Keep the old HTTPS entry points reachable

Inventory old and new DNS records, bare and www hosts, other public aliases, CDN routes and certificate renewal. An old HTTPS URL needs a valid certificate before its server can deliver a 301. Keep the old domain and its redirect service working; changing the new domain’s DNS does not migrate requests for the old name.

Configure the planned permanent redirects at the layer receiving those requests. For public GET pages, 301 is a straightforward choice; test method-sensitive endpoints separately. Prefer a direct mapped destination instead of sending users through old intermediate migrations. Check that proxies and applications agree on the public scheme and hostname, and inspect both IPv4 and IPv6 paths when both are published.

Reference: Google Search Central: permanent server-side redirects

Point page signals at the new URLs

Update internal navigation and each new page’s canonical to the intended new URL. Check article, product and category templates separately. For localized pages, update every hreflang counterpart and its reciprocal links. Publish a sitemap of the new canonical URLs and submit it in Search Console; do not leave the active sitemap pointing at redirected old addresses.

Remove staging noindex instructions from pages intended for search, including response-header directives, and review crawl rules. Do not block the old redirect URLs in robots.txt if crawlers need to discover their destinations. A 200 response, a submitted sitemap or a declared canonical does not prove that Google has indexed the new page. Use URL Inspection for that separate question.

Reference: Google Search Central: consistent canonical signals

Finish the release checks and preserve old links

After redirects work, use Search Console’s Change of Address tool for an eligible domain or subdomain move. Follow its ownership and property requirements for the old and new sites and any required old-host variants. The tool is not for HTTPS-only, www-only or path-only changes, and it does not replace the redirects.

Google recommends keeping redirects for as long as possible, generally at least one year; this is guidance, not a guarantee that all search signals transfer by a deadline. Keep domain registration, DNS, certificates and redirect hosting in place for that period. Longer retention can preserve old bookmarks and external links.

  1. At release, test the homepage, a deep page, a renamed path, a harmless query variant, a download and an old HTTPS alias against the mapping.
  2. Confirm the final body and browser journey, not only the status. Check forms and authentication locally; RedirectPath does not sign in or execute JavaScript.
  3. Verify canonical, hreflang, robots and sitemap output on representative new pages, then use the applicable Search Console move and inspection tools.
  4. Save the checked URL list and fix any failed mappings before completing the release. Retain the old redirect infrastructure and remove avoidable old links from your own templates.

Reference: Google Search Console: supported Change of Address moves

Keep reading

Related guides

All guides & reference
Quick reference

HTTP status code reference for redirects and endpoints

Compare 301, 302, 303, 307 and 308, then interpret common endpoint errors and redirect stop reasons.

Open reference