A website move goes wrong in the details: a mailbox nobody remembered, a database that copied half-way, a page address that changed without a redirect. None of these are hard problems. They just need a list, a test and a plan for switching over.
1. List everything on the old host
- every website and subdomain, including old ones still linked from somewhere;
- databases and their users;
- mailboxes, forwarders and mailing lists, if email is on the same host;
- DNS records, all of them, not only the ones you remember;
- scheduled tasks (cron jobs), SSL certificates and any custom server settings.
Export the full DNS zone and keep it. It is the most useful single document in a move.
2. Lower the DNS time to live, in advance
DNS records carry a time to live (TTL) that tells other servers how long to remember them. A day or two before the move, lower the TTL on the records you will change to a few minutes. After the switch, visitors then reach the new server quickly instead of some of them seeing the old one for a day.
3. Build and test the new server first
Copy the site and database to the new server and test it before any visitor arrives. You can do this by pointing your own computer at the new server with a hosts file entry, or through a temporary address. Check:
- every important page, form and login;
- the shop checkout and payment callback, if you have one;
- emails the site sends, such as order confirmations and password resets;
- that HTTPS works for both the address with www and the one without.
4. Keep every old address working
If page addresses change, for example because you are also changing platform, map each old address to its new one and add permanent (301) redirects. Search engines pass most of a page’s standing to its new address through a 301. Pages that simply disappear lose it. Pay special attention to pages that get search traffic or links from other sites.
5. Move email carefully
If email moves too, copy existing mailboxes with a tool such as imapsync, then switch the MX records, then run the copy once more to catch messages that arrived during the switch. Update SPF, DKIM and DMARC for the new server, or mail will start landing in spam.
6. Switch at a quiet hour
Pick the time with the least traffic and orders. Put the old site in maintenance mode or freeze changes so nothing is written to the old database after the final copy. Then do the final database sync, switch DNS and test again from outside your office.
7. Watch, and keep a way back
For the first days, watch error logs, uptime and Google Search Console for crawl errors and pages dropping out. Keep the old host running for a couple of weeks before cancelling it. If something was missed, you can still copy it across.
Common mistakes
- Cancelling the old hosting before checking the new server has everything.
- Forgetting that the old host also ran DNS or email.
- Blocking search engines on the new server with a leftover “noindex” setting from testing.
- Moving the site to a new address and redirecting everything to the home page.