Most people put off changing web host for the same reason: fear of something breaking. The site might go offline, email might vanish, or a form might quietly stop working. Those worries are reasonable, but nearly all migration problems come from doing steps in the wrong order.
This guide sets out a sensible sequence for moving a typical small business or personal website, with its email, to a new host. The aim is simple: build the new home, test it properly, then switch over so visitors don't notice.
The golden rule: build first, switch last
A migration has two separate halves. First you copy everything to the new host while the old one keeps running. Only when the copy works do you point your domain at it. Keep your old hosting live until the new set-up has been running happily for a week or two. That safety net costs very little and saves a lot of stress.
Step 1: Take stock of what you're moving
Before touching anything, list every part of your current set-up. It's easy to remember the website and forget the email forwarder you set up years ago.
| Item | What to note down |
|---|---|
| Website files | Where the site lives, and any upload or media folders |
| Databases | Database names, users and which site uses each one |
| PHP version | The version the site currently runs on |
| Every mailbox, alias, forwarder and autoresponder | |
| DNS records | A, MX, TXT, CNAME and SRV records, especially ones added for third-party services |
| Scheduled jobs and extras | Cron jobs, redirects and anything custom |
Export or screenshot your current DNS zone. It's the item people most often regret not keeping.
Step 2: Lower your DNS TTL in advance
Every DNS record has a TTL (time to live), which tells other servers how long to cache it. If yours is set to a day, some visitors could keep reaching the old server for a day after you switch.
A day or two before the move, lower the TTL on your main records to something short, such as five minutes. When you change them later, the update will spread quickly. You can raise it again once everything has settled.
Step 3: Copy your website files
Download your site files from the old host using SFTP or its file manager, then upload them to the new one. Keep the folder structure exactly as it was. If your site is large, compressing it into a single archive first makes the transfer quicker and less error-prone.
Step 4: Move your databases
If your site uses a content management system or online shop, the content lives in a database rather than in the files.
- Export the database from the old host, usually as a .sql file.
- Create a new, empty database and user on the new host.
- Import the file into the new database.
- Update your site's configuration file with the new database name, user, password and host.
A failed database connection after a move is almost always a mismatch in step four.
Step 5: Match the PHP version
Set the new host to the same PHP version your site used before. Upgrading PHP is a good idea, but do it as a separate job once the move is complete. Changing two things at once makes it hard to tell which one caused a problem.
Step 6: Recreate your email
Set up the same mailboxes, aliases and forwarders on the new host. Existing messages don't move by themselves. A common approach is to connect both the old and new mailboxes to an email client using IMAP, then drag folders across. Alternatively, ask users to keep a copy of anything important before the switch.
If services such as a newsletter platform or invoicing tool send email as your domain, make a note of their SPF and DKIM records so you can add them to the new DNS zone. Our guide to SPF, DKIM and DMARC explains why these matter.
Step 7: Test before anyone else sees it
You can preview the new site before changing DNS by editing the hosts file on your own computer, so that only your machine sends your domain to the new server's IP address. Then check:
- Pages, images and links load properly
- You can log in to the admin area
- Contact forms send, and shop checkouts complete
- Nothing still points to the old server's address
Remove the hosts file entry when you've finished, or you'll keep seeing the new server after you thought you'd switched back.
Step 8: Switch DNS
Now point your domain at the new host. You'll either change the nameservers at your registrar, or update the A and MX records in your existing DNS. If you change nameservers, check that the new zone contains every record from your list in Step 1 before you switch. Old records left at your previous provider stop counting the moment the nameservers move.
For a short while, some mail may still arrive at the old server while the change spreads. Keep checking the old mailboxes for a few days.
Step 9: Tidy up afterwards
- Confirm the SSL certificate is working and the site loads over HTTPS.
- Send test emails to and from each mailbox.
- Raise your DNS TTL back to a normal value.
- Set up and check backups on the new host.
- Only then cancel the old hosting.
Transferring the domain registration itself is a separate job. It's usually best done after the move, rather than in the middle of it.
Common mistakes to avoid
- Cancelling the old host too early. You lose your fallback and any mail that arrived late.
- Forgetting third-party DNS records. Newsletter or verification records go missing, and mail starts landing in spam.
- Leaving the TTL high. Visitors reach the old server for hours after you switch.
- Upgrading everything at once. Move first, improve second.
How TDesk makes the new home easier
When you add a domain to TDesk, the provisioning chain creates a DNS zone on three nameservers with A, MX, SPF, DKIM and DMARC records in place, wires up mail with DKIM signing, deploys the web vhost and issues a free Let's Encrypt certificate after a pre-flight DNS check. You can see each step on the how it works page.
For the migration itself, you get a browser file manager and per-account SFTP, MySQL and PostgreSQL databases with browser-based admin, PHP 7.4, 8.1, 8.2 or 8.3 switchable per site, and full DNS record editing for A, AAAA, MX, TXT, CNAME and SRV records. Mailboxes, aliases, forwarders and autoresponders are all managed in the panel, and inbound mail passes through MXGuard AI antispam at no extra cost. Once you've moved, encrypted daily backups are kept for 30 days with one-click restore. The full list is on the features page.
Ready to move?
TDesk Hosting is £4 per website a month (excluding VAT), with the panel, server, bandwidth, email, DNS, SSL, databases and daily backups included. There are no setup fees or contracts, and you can cancel anytime. See TDesk pricing and get started.