Agent Wranglers

WEB-88Recommended

Move a site or domain without losing links

When a whole site or domain moves, redirect every old address one to one. Keep the redirects as long as possible, and at least a year.

How to do it

Map every old URL before the move. Keep the old domain registered with a valid certificate, so HTTPS links still reach the redirect. Publish a sitemap of the new addresses and update every canonical and hreflang link. For a new domain or subdomain, use Google Search Console's Change of Address tool. It is not needed for HTTPS, www or path changes. Google forwards signals for 180 days after you start it, so keep the redirects for at least that long. Before you change DNS records, follow Shorten the TTL before you move a record.

How to check

A test requests every address from the old sitemap on the old domain, over HTTP and HTTPS. Each answers one 301 to the matching page on the new one, which answers 200.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/redirects-and-canonicals/site-moves">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.