I'm Cain, a solo web developer in Centreville, Virginia, and moving a website to a new host is the job people book after their first DIY attempt took the site down for a weekend. The migration itself is copy, test, flip. What breaks sites and email is the order and the skipped prep steps. Here's the order that doesn't break anything, including the two steps nobody remembers until it's too late.
Days before: shorten the fuse on DNS
Every DNS record has a TTL, a time-to-live that tells the world's resolvers how long to cache it. Most domains ship with TTLs of one to four hours, sometimes a day. That means after you flip DNS to the new host, some visitors keep getting sent to the old server for hours, and email can straddle both.
Three to five days before the move, lower the TTL on your DNS records to 300 seconds, five minutes. DNS changes to the TTL itself need one old-TTL cycle to propagate, which is why you do this days ahead, not the morning of. After the migration is stable, raise it back. This single prep step turns a stressful slow cutover into a five-minute one.
While you're in there, write down every existing record: the A record, all the MX records, every TXT record for SPF and verification, and any CNAMEs. You will be recreating these at the new DNS host, and "I forgot what the records were" is a bad place to discover you also forgot what they were.
Move the files and the database
For a WordPress site, the site is two things: the files (core, theme, plugins, uploads) and the database (content, settings, users). Both move:
- Copy the files via SFTP or a host-to-host transfer tool.
- Export the database, import it on the new host, and update
wp-config.phpwith the new credentials. - Check PHP version parity. A site running plugins that need PHP 7.4 will white-screen on a host that only offers 8.3, and that failure looks identical to a botched copy.
Many hosts migrate for free as a signup perk, which is genuinely useful for simple sites. Just verify what they'll move: some migrate the files but leave you to sort out email and DNS yourself.
Test on the new host before anyone sees it
This is the step that separates a migration from a gamble. Before touching DNS, edit your computer's hosts file to point your domain at the new server's IP. Your machine now loads the site from the new host while the rest of the world still sees the old one.
Test properly in that state: the homepage, a few deep pages, the contact form actually sending, wp-admin login, any checkout or booking flow, and image-heavy pages where missing uploads show up fast. If something's broken, you fix it on the new host with zero downtime pressure, because nobody else can see it yet.
Flip DNS, and keep email alive
Two paths, depending on how your DNS works:
- Your DNS lives at the registrar (common): update the A record to the new server's IP. Keep every other record intact, especially MX.
- You're switching nameservers to the new host: recreate every record at the new host's DNS before the switch, because moving nameservers moves all records, and anything you didn't recreate stops existing.
The MX records are the step people forget. If your email is hosted at the old hosting account, common with cPanel hosts, moving DNS or canceling the account takes your email down with the site. The correct sequence is migrate mailboxes first or move email to Google Workspace or Microsoft 365 ahead of the site move, then recreate MX records at the new DNS host pointing wherever mail now lives. I cover the full working list on the migration checklist, and the email side specifically is the part worth double-checking twice.
Rollback, and when to cancel the old host
Keep the old hosting account alive and untouched for at least two to four weeks after the cutover. Three reasons:
- Rollback is free while it exists. If the new host has a problem, flipping DNS back is a five-minute revert, not an emergency.
- Stragglers exist. Some visitors and some email will hit the old server for a while even with a low TTL.
- Googlebot needs a bridge. Keep the old host serving until you can see Googlebot hitting the new IP in the server logs, so Google never crawls a dead server during the transition. A few days of overlap costs nothing; a week of Google hitting a closed account costs rankings.
Cancel the old account only after the site has run clean on the new host, email flows, and the logs confirm crawl activity on the new IP.
Common questions
Will I lose email during the move?
Not if MX records get recreated correctly at the new DNS host and your mailboxes exist somewhere before the flip. The outages you hear about are almost all "we changed nameservers and forgot the MX records," which is a planning failure, not an inherent risk.
How long does the switch actually take to propagate?
With a 300-second TTL set days ahead, most traffic moves within minutes. Without it, the old TTL governs, so a 24-hour record can take a day. Some resolvers ignore TTLs entirely and lag regardless, which is why the old host stays up during the window.
Do I need to move my domain registration too?
No. Domain registration, DNS hosting, and website hosting are three separate things that can live in three places. Moving hosts doesn't require moving the domain; you only update records where the DNS is managed. Consolidating registration is a separate, optional job covered in the website handoff notes.
If you'd rather not touch any of this
This is exactly the work inside my website migration service, and if the situation is messier, like the old host relationship is ending badly or nobody has the logins, that's website takeover territory. Either way, the order above is the order: prep DNS early, test privately, move email deliberately, and don't cancel the old host while it's still the only thing standing between Googlebot and a dead IP.

