Skip to content

Limited-time offerUp to 80% off hosting + a FREE domainClaim my discount

Two colleagues planning a website migration on a laptop
Web Hosting

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
  1. Before you start: the golden rule
  2. Step 1: Take a full backup
  3. Step 2: Lower your DNS TTL
  4. Step 3: Set up the new hosting account
  5. Step 4: Copy files and databases
  6. Step 5: Test before you switch DNS
  7. Step 6: Plan the email move
  8. Step 7: Switch DNS
  9. Step 8: Check everything after the move
  10. Want to skip all of this?
  11. Frequently asked questions
  12. 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

  1. Upload your website files to the new account's public_html folder.
  2. Create a new database and user, then import your database export.
  3. Update your configuration file, for example wp-config.php in 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.

Topicswebsite migrationmove hostingchange hostzero downtime
Share this articlePostFacebookLinkedInWhatsApp
Foxeep Editorial Team

The Foxeep team writes practical guides to help you build, run and grow your website with confidence.