How to switch web hosting providers without downtime
By Ash, Founder, HosteazePublished 2 min read
The short answer
Keep your old hosting running, sign up with the new host, and copy your website files, database and email across. Test the site on the new server before touching DNS. Then lower your DNS TTL, point the domain at the new host, check everything works, and cancel the old plan only after a few quiet days.

Moving hosts is a lot like moving house: the risky part isn't the van, it's cancelling the old tenancy before the new place has keys. Do things in the right order and visitors never notice the move. The golden rule is simple. Nothing changes for the public until the new copy is tested and working.
What do I need before I start?
Gather these first, so you're not hunting for passwords halfway through:
- Logins for your current hosting control panel.
- Logins for wherever your domain's DNS is managed (often your domain registrar).
- A list of email accounts on the domain, and whether email is hosted with your web host or elsewhere.
- Your new hosting account.
How do I move the website?
- Keep the old hosting live. Don't cancel anything yet.
- Take a full backup: the website files, a database export and, if needed, the mailboxes. Our guide on how to back up a WordPress site covers WordPress specifically.
- Upload the files to the new host and import the database.
- If the database name, user or password changed, update them in the site's configuration file. For WordPress that's
wp-config.php, as the WordPress documentation describes. If the domain stays the same, nothing else needs changing. - Preview the site on the new server, using a temporary address from the new host or by editing your computer's hosts file. Click through pages, submit a contact form and log in to the admin area.
For WordPress, the detailed version is in how to move WordPress to a new host.
How do I switch the domain over without downtime?
- A day before, lower the TTL (time to live) on your domain's records to something short, such as 300 seconds. TTL tells other servers how long to remember the old answer.
- Change the A record to the new server's IP address, or switch the nameservers if the new host will manage your DNS. Our guide on how to point a domain to a website shows both methods.
- If email is moving too, copy mailboxes across first, then change your MX records.
- Check the site loads with a padlock. Most hosts issue a free SSL certificate once the domain points at them, which can take a little while.
How long should I keep the old hosting?
At least a few days after the switch. Some visitors and mail servers keep using the old address until their cached copy expires, and DNS propagation varies. Don't edit the old site in the meantime, or changes may get lost.
| Stage | Typical time | Visitors affected? |
|---|---|---|
| Backup and copy | 1 to 3 hours | No |
| Testing | 30 minutes to a day | No |
| DNS change spreading | Minutes to a day or two | No, both copies are live |
| Running both in parallel | 3 to 7 days | No |
If you'd rather not do it yourself, ask your new host about migration help before you start. Many hosts offer it free, Hosteaze included.
Step by step
1.Keep the old hosting live
Don't cancel your current plan until the move is finished and checked.
2.Take a full backup
Download your website files, a database export and a copy of any mailboxes hosted there.
3.Copy the site to the new host
Upload the files, import the database and update the database details in your site's configuration file.
4.Test before changing DNS
Preview the site on the new server using a temporary address or your computer's hosts file.
5.Lower the DNS TTL
A day before switching, reduce the TTL on your domain's records so the change spreads faster.
6.Point the domain at the new host
Update the A record or nameservers, and move email records if email is moving too.
7.Check, then cancel
Confirm the site, forms, SSL and email all work, wait a few days, then cancel the old hosting.
Frequently asked questions
How long does it take to switch web hosts?
The copying usually takes an hour or two for a small site. The DNS change can take a few hours to spread, which is why you keep the old hosting running in the meantime. Plan for a week from start to cancelling the old plan.
Do I need to transfer my domain to switch hosts?
No. Your domain can stay where it's registered; you only change where its DNS records point. Transferring the domain is a separate job you can do later, or never.
Should I move email at the same time?
Only if your email is hosted with your old web host. If it's on Google Workspace or Microsoft 365, leave your email records alone and move only the website.




