
How to Migrate Your Website to a New Host Without Downtime
A step-by-step website migration plan: back up, copy files and databases, test before switching DNS, keep email working and avoid downtime.
In this article
- Before you start: the golden rule
- Step 1: Take a full backup
- Step 2: Lower your DNS TTL
- Step 3: Set up the new hosting account
- Step 4: Copy files and databases
- Step 5: Test before you switch DNS
- Step 6: Plan the email move
- Step 7: Switch DNS
- Step 8: Check everything after the move
- Want to skip all of this?
- Frequently asked questions
- Conclusion
A website migration sounds risky, but with the right order of steps you can move to a new host without downtime, lost emails or broken pages. Follow this plan, or let your new host do it for you.
Before you start: the golden rule
Do not cancel your old hosting until the new site has been live and checked for several days. Keeping both running during the move is what makes a zero-downtime website migration possible.
Step 1: Take a full backup
Download a complete copy of your website files and databases from your current host. If you use cPanel, a full account backup includes files, databases and email settings. Store it on your computer or cloud storage. This is your safety net.
Step 2: Lower your DNS TTL
TTL (time to live) tells the internet how long to remember your DNS records. A day or two before the move, lower the TTL of your main records to a few minutes. When you switch, the change will spread much faster.
Step 3: Set up the new hosting account
Create your account, add your domain and make sure the PHP version matches or is newer than your current one. Create the same email accounts you use today, so nothing is missing after the switch.
Step 4: Copy files and databases
- Upload your website files to the new account's
public_htmlfolder. - Create a new database and user, then import your database export.
- Update your configuration file, for example
wp-config.phpin WordPress, with the new database details.
For WordPress, a migration plugin can package files and database together and restore them in one step.
Step 5: Test before you switch DNS
Preview the site on the new server before the world sees it. You can use a temporary URL provided by the host or edit the hosts file on your computer to point your domain to the new server. Check:
- Pages, images and menus load correctly
- Forms send messages
- Logins work and the admin area is accessible
- Your store can complete a test order, if you have one
Step 6: Plan the email move
Email is the part people forget. If your email is hosted with your website, copy existing mailboxes to the new server, or use an email client to move messages. Make sure MX, SPF and DKIM records on the new DNS match your new mail setup. Read DNS records explained for details.
Step 7: Switch DNS
Point your domain to the new host by changing the nameservers, or the A record if you manage DNS elsewhere. Thanks to the low TTL, most visitors will reach the new server quickly. For a short time, some visitors may still reach the old server, which is why both copies must stay identical. Avoid publishing new content or taking orders on the old site during the switch.
Step 8: Check everything after the move
- Confirm the SSL certificate is active on the new server
- Check that email is sent and received
- Search your site for errors and broken links
- Resubmit your sitemap in Google Search Console
- Restore your DNS TTL to a normal value
Want to skip all of this?
Foxeep offers free website migration. Our team copies your site, databases and email, tests everything and helps you switch with minimal or no downtime. If you also want to move your domain, see our guide to transferring a domain.
Frequently asked questions
Will my website go offline during migration?
Not if you keep the old hosting active, test on the new server first and only then switch DNS.
How long does DNS take to update?
With a low TTL, most visitors see the change within minutes to a few hours. Some networks can take up to 48 hours.
Do I need to transfer my domain to migrate my website?
No. You can move your hosting and keep your domain where it is by updating its DNS. Transferring the domain is optional.
Conclusion
A smooth website migration comes down to preparation: back up, copy, test, then switch. Keep both servers running until everything is confirmed, and your visitors will never notice the move. Or let us handle it with a free Foxeep migration.


