How to Move a Website to a New Domain and Preserve Old URLs
Map old URLs to new pages, prepare HTTPS and canonical tags, and verify a domain move in Search Console without discarding useful old links.
- domains
- web-hosting
- seo
- redirects
Moving a website to a new domain changes every public URL, even when the page paths stay the same. Build the new site, make a map from old URLs to equivalent new pages, and test the destinations before enabling permanent redirects. Once both sides work, tell search engines where the site moved. Keep the old domain registered and the redirects reachable.
A move like this touches the website and its old address. A registrar transfer changes who manages the registration of an existing name. Keeping those projects separate leaves fewer changes to troubleshoot on launch day.
Make a URL map before the cutover
Start with the old sitemap, useful pages from search and access logs, and links that people use in emails or documentation. Include alternate old hosts where the site served traffic, downloadable material, and localized pages. For each useful old URL, decide which new page answers the same request. Use the final destination in your map, with the new hostname and correct path.
| Old request | Destination or result | Why |
|---|---|---|
old.example.com/pricing | new.example.net/pricing | The new pricing page answers the same question. |
old.example.com/guide/setup | new.example.net/docs/setup | The setup guide moved to a different path. |
old.example.com/events/2018 | 410 Gone if there is no replacement | The event page is gone and the homepage would mislead visitors. |
Google's URL mapping guidance recommends equivalent destinations and direct permanent redirects. For parameters, decide which ones the destination needs. Test a filtered public page, a download link, and a link with attribution parameters with their expected destinations.
Publish the new pages and verify the old HTTPS entry points
Before launch, inspect the new site on its intended public hostname. Each page should serve the expected content and status, work over HTTPS, and use the intended new URL in its canonical declaration. Update internal links, sitemap URLs, and any localized alternate links. Remove temporary crawl or index restrictions used during staging.
Enable a server-side 301 or 308 on each old URL when the new destination is ready. Keep HTTPS certificates valid for the old hosts. A visitor who opens an old HTTPS link needs a successful TLS connection before receiving a redirect. The domain forwarding guide explains what happens to paths and parameters at the redirect itself.
Test an old link from a fresh browser and check the response chain. The expected result is a redirect directly to the new page, followed by a successful response containing that page. A request for a retired URL should produce its planned status. Repeat this check for the high-value URLs and each old hostname.
Record what Search Console sees after launch
Verify control of the affected properties. For an eligible change between domains or subdomains, submit Change of Address after the move and redirects are working. Google gives different instructions for HTTP-to-HTTPS moves and changes between www and non-www on the same domain. Submit the new sitemap and track selected old and new URLs in Search Console.
Keep an eye on redirect errors, unmatched URLs with incoming links, and pages that still name an old canonical. Search visibility can fluctuate while Google recrawls a move. Google recommends keeping redirects generally at least one year. Old links can keep sending visitors after that point, so decide when to retire an address based on the links and services that still depend on it.
