The short answer
To move a website to a new host without downtime, build and test the site on the new server while the old one keeps serving visitors. Lower your DNS TTL to five minutes a day or two ahead, copy every DNS record including email, then point the domain at the new server. Keep the old host for a week.
Sites go dark during a move when it is done backwards: the old host is cancelled first, or the domain is pointed at an empty server and the upload starts afterwards. Done in the order below, visitors land on a working site the whole time, because during the changeover both servers are serving the same pages.
Build the new site first and switch the domain last
| When | What you do | Why |
|---|---|---|
| A week ahead | Buy the new hosting, take a full backup of the old site and save a copy of every DNS record. | Nothing is live yet, so a mistake costs nothing. |
| Two or three days ahead | Copy the site to the new host and get it working on a temporary address. | The old site is still serving visitors. |
| 24 to 48 hours ahead | Lower the TTL on your DNS records to five minutes. | The switch then reaches most visitors in minutes. |
| Switch day, a quiet hour | Test the new site once more, then point the domain at the new server. | Any fault you find before the switch never goes live. |
| The week after | Keep the old host paid and running, then raise the TTL again. | It is your way back if something surfaces. |
Ask the new host to do the copying before you start. Many include a migration with a new account, and their team does it every day. Take your own backup first all the same, because a half-finished transfer is your problem. How to get your website files from your hosting company has the cPanel and SFTP steps.
On WordPress a plugin can do the same job. All-in-One WP Migration and Backup is the simplest for a small site, and the upload limit people run into is set by the hosting company, not the plugin. Migrate Guru is free and its listing says it moves sites up to 200 GB, doing the work on its own servers. UpdraftPlus, Duplicator and WPvivid also migrate in their free versions. After the move, open Settings, then Permalinks, and press Save. If images or links still point at the old address, the search-and-replace in UpdraftPlus fixes them.
Test on a temporary address before the domain moves
Most hosts give a new account a preview address or a staging subdomain, so you can open the new copy while your real domain still points at the old one. Click through every page, send the contact form and confirm the email arrives, log in to the admin, open the site on a phone, and run a test order if you sell anything.
A preview address is not a perfect test. WordPress stores its own address, so a copy running under a different one can behave differently. A developer can get an exact test by editing the hosts file on one computer, which loads the new server under the real domain for that computer only.
Lower the DNS TTL a day or two ahead
TTL (time to live) is how long other computers may remember your old DNS settings before checking again. Amazon's Route 53 documentation puts the typical TTL on a nameserver record at 172,800 seconds, which is two days, and warns that without lowering it a domain could be unavailable for up to two days if the move goes wrong. Cloudflare's guidance is to lower TTLs at least 24 to 48 hours before the move, and it gives 300 seconds as a common setting.
The lower number only takes effect once the old one has run out, which is why it goes in ahead of time. Raise it again when the move is settled. Amazon recommends going back to 172,800 seconds on the nameserver record so visitors' computers look you up less often.
Copy every DNS record, or your email stops
Changing nameservers hands your whole DNS zone to the new company, which knows nothing about your old records. GoDaddy's instructions carry the warning that changing nameservers may break existing connections to your website or email. Cloudflare says its scan of your existing records is not guaranteed to find them all. Export or screenshot the current zone and account for every line:
- MX records route your email. If they are missing on the new side, mail bounces from the moment the nameservers change.
- TXT records hold SPF, DKIM and DMARC. Lose them and mail still flows but starts landing in spam.
- CNAME and A records for subdomains: webmail, a booking system, a client portal, a staging site.
- Anything you do not recognize. Copy it across and find out what it does later.
The safer route leaves DNS where it is and changes only the A record to the new server's IP address. That moves the website and leaves email alone. Switching hosting without losing email covers the case where the mailboxes live on the old host too.
Four things to check right after the switch
- The contact form. The new server sends mail differently, so a form can say sent and deliver nothing. Send a real one, and if it does not arrive, see why a contact form stops sending emails.
- The certificate. Let's Encrypt usually proves control of a domain by fetching a file from it, which cannot work until the domain points at the new server. Expect a browser warning for a few minutes, or ask the new host to issue the certificate through a DNS check before the switch.
- Scheduled jobs. Backups, imports and report emails set up on the old server do not travel with the files.
- Redirects. They live in server settings that a migration tool may not carry over. Open a few old addresses and see where they land.
Keep the old host running for a week
GoDaddy says DNS changes usually spread within a few hours and can take up to 48, and that some internet providers ignore TTL and refresh only every two to three days. Stray visitors keep reaching the old server through that period. The old account is also your way back: pointing the domain at it again takes minutes while it exists.
After a week with no surprises, download one last backup from the old host and cancel. A brochure site is an afternoon's work if you are comfortable in a control panel. For a store, a booking system or email on the same account, where an hour offline costs money, our maintenance plans include hosting and we do the move, DNS and email included.
Get help from Venbit
More website guides
Every question in this series, from Fix website problems.
Symptoms & emergencies17
- What Size Should Images Be for a Website?
- Why Is My Logo Blurry on My Website?
- Why Are Images Not Loading on My Website?
- Why Is My Website Down Right Now? How to Fix It
- Why Does My Website Say "This Account Has Been Suspended"?
- Why Is My Contact Form Not Sending Emails?
- There Has Been a Critical Error on This Website: How to Fix It
- Why Is My Website Showing "Not Secure" in Chrome?
- Why Is My Squarespace Site Not Showing Up on Google?
- Why Did Google Remove My Website From Search Results?
- Why Did My Website Traffic Suddenly Drop? Top Causes
- Why Is My Website Slow on Mobile but Fast on Desktop?
- Why Does My Website Look Broken on My Phone?
- Why Do My Website Images Look Blurry?
- How to Tell If Your Website Has Been Hacked
- Why Google Shows "This Site May Be Hacked" and How to Clear It
- How to Fix the "Deceptive Site Ahead" Warning
What happens if...11
- What to Do When Your Hosting Company Shuts Down
- How to Get Your Website Files From Your Hosting Company
- Hosting Expired and Your Website Is Down? How to Get It Back
- How to Recover a Deleted Website
- How to Move a Website to a New Host Without Downtime (you are here)
- Is My Web Host Going Out of Business?
- What Happens If My SSL Certificate Expires?
- What Happens If My Domain Name Expires?
- What Happens If Your Web Host Goes Out of Business?
- What Happens If You Stop Paying Your Web Developer?
- Why Are My Business Emails Going to Spam?
Plans & hiring1
Ownership & switching11
- How to Find Out Who Built Your Website
- How to Find Out Who Owns a Domain Name
- Locked Out of Your Own Website? How to Get Access Back
- How to Transfer a Website to a New Developer
- Website Ownership Checklist for a Small Business
- What Is My Website Built With?
- Who Hosts My Website and Domain?
- What to Do When Your Web Developer Disappears
- How to Switch Web Hosting Without Losing Your Email
- Who Is My Email Provider?
- How to Back Up a WordPress Website Yourself
Platform-specific3
Seattle & local1
The Venbit Team
Web design & SEO, Mill Creek, WA
Venbit is a web design, SEO, and digital marketing studio in Mill Creek, Washington. Since 2011 we've designed, built, and ranked small-business websites for clients across the Puget Sound and around the country, so the numbers and advice here come from real projects, not a content mill.
Sources
- Cloudflare: DNS best practices, preparation phase (lower TTLs 24 to 48 hours ahead, 300 seconds)
- Cloudflare: Set up a primary zone, full setup (the record scan is not guaranteed to find every record)
- AWS Route 53: Making Route 53 the DNS service for a domain that's in use
- GoDaddy: What factors affect DNS propagation time?
- GoDaddy: Change my domain nameservers
- Let's Encrypt: Challenge Types (HTTP-01 and DNS-01)
- WordPress.org: All-in-One WP Migration and Backup
- WordPress.org: Migrate Guru
- WordPress.org: UpdraftPlus
- WordPress.org: Duplicator
- WordPress.org: WPvivid

