Guide 01 Hosting
How to Move a Website to a New Host Without Downtime
Back up, rebuild on the new host, test privately, switch DNS, then shut the old one down.
Short answer
Copy the site to the new host and test it there while the old one keeps running, lower your DNS TTL a day ahead, switch the records, and cancel the old plan only after traffic and email have moved and you have kept a backup.
Key takeaways
- Moving a website and moving a domain are separate jobs; you usually only need to change DNS records.
- Both hosts run in parallel during the move, so visitors always reach a working copy.
- Lower the TTL on the records you will change at least a day before the switch.
- Email often lives on the old host; check MX records before you touch anything.
People put off moving their website for years because they're afraid it will break. A small site can move with no visible downtime if you follow one rule: the old host keeps serving the site until the new one has been fully tested. Everything else is detail.
What actually changes when you move hosts?
When you move hosts, the site's files move to a new server and you change DNS records so your domain points there; the domain itself doesn't have to move.
Your domain lives at a registrar. Your website lives at a host. DNS is the directory that connects the two. Moving hosts means copying the site and then updating that directory. Our guide to choosing and registering a domain explains the registrar side if you're unsure where your domain is.
Before you start, write down three things: where the domain is registered, where DNS is managed (often the registrar or the old host), and where your email is hosted.
What should you do before copying anything?
Make a full backup, check where your email lives, and lower the TTL on the DNS records you're going to change.
- Download a full backup of files and, if your site uses one, its database. Store it on your own computer as well as in the cloud.
- Look at your MX records. If they point to the old host, your email is there too, and you'll need a plan for it.
- Find the records you'll change, usually an A record for the bare domain and a CNAME or A record for www.
- Lower their TTL (time to live) to something short, such as 300 seconds, at least a day before the move. That way, when you switch, the old answer expires quickly everywhere.
How do you copy the site to the new host?
Rebuild the site on the new host from your backup or with the new host's migration tool, then fix anything tied to the old server.
| Site type | How it usually moves |
|---|---|
| Static site (HTML files) | Upload the files or connect the new host to your Git repository |
| CMS such as WordPress | Use a migration plugin or the host's migration tool, or copy files and import the database |
| Hosted website builder | Most builders can't export a working site; you rebuild it on the new platform |
Builders are the hard case. If you're leaving one, copy your text and images out first and plan time to rebuild the pages. Keep page addresses the same wherever the new platform allows.
How do you test before anyone sees it?
Use the temporary address the new host gives you, or a hosts file entry on your computer, to see the new copy while the public still reaches the old one.
Most hosts provide a preview or temporary address. Click through every page, submit the contact form, check images and test on a phone. If the site needs to load under your real domain to work properly, you can point only your own computer at the new server by editing its hosts file; the host's help pages usually explain how.
Check HTTPS too. Many hosts issue a free certificate only after DNS points to them, so confirm how the new host handles that, and expect a short delay after the switch.
When and how do you switch DNS?
Pick a quiet time, change the A and CNAME records to the values from the new host, and keep the old host running.
Update the records at whatever service manages your DNS. If you're also moving DNS to the new host by changing nameservers, recreate every existing record there first, especially MX and any TXT records for email. Missing records are the most common cause of broken email after a move.
Then watch. Load the site from your phone over mobile data. Check that forms arrive and that email still flows in both directions. Look at the new host's logs or dashboard as well: once requests start showing up there, the switch is working. If something is badly wrong, you can point the records back to the old host, which is still running, and try again after fixing the problem.
When can you cancel the old host?
Cancel only after a week or two of normal traffic and email on the new host, and after you have downloaded a final backup from the old account.
Some visitors and bots hold on to old DNS answers longer than expected. Keeping the old plan for a short overlap costs little and protects you if something was missed. When you do cancel, check that no email accounts, databases or other domains are still using it. Then put the TTL back to a normal value and set up regular backups on the new host, as our security guide suggests.
If you're moving because the old plan no longer fits, the planner on our home page can help you choose a setup that matches what the site needs now.
Questions
Do I need to transfer my domain to move my website?
No. The domain can stay at its current registrar. You only change the DNS records, or the nameservers, so they point to the new host. Transferring the domain is a separate step you can do later, or never.
How long does a DNS change take?
Visitors start reaching the new host once their cached copy of the old record expires, which depends on the TTL. With a short TTL set in advance, most people switch within minutes to an hour; a few may take longer because of caching along the way.
Will moving hosts hurt my search rankings?
If the addresses of your pages stay the same and the site works on the new host, a host move usually has no lasting effect. Changing page addresses at the same time is what causes trouble, so keep URLs identical or add redirects.