How to Move a Website to a New Host Without Downtime

The Venbit TeamUpdated November 29, 20266 min read

Move hosts with no downtime

In order

  • 1Build on the new host
  • 2Test on a temp URL
  • 3Lower the DNS TTL
  • 4Copy every record
  • 5Switch

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

WhenWhat you doWhy
A week aheadBuy 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 aheadCopy 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 aheadLower the TTL on your DNS records to five minutes.The switch then reaches most visitors in minutes.
Switch day, a quiet hourTest 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 afterKeep the old host paid and running, then raise the TTL again.It is your way back if something surfaces.
A host move with no downtime

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.

More website guides

Every question in this series, from Fix website problems.

Symptoms & emergencies17
What happens if...11
Plans & hiring1
Ownership & switching11
Platform-specific3
Seattle & local1

Questions & Answers

  • The copying and testing take a few hours for a small site. The rest is waiting on DNS: GoDaddy says most changes spread within a few hours and can take up to 48. With the TTL lowered to five minutes a day or two ahead, most visitors follow the switch within minutes.

  • Not if the new host is already serving the site and holds a copy of every DNS record. During the changeover a visitor reaches either the old server or the new one, and both work. Downtime comes from pointing the domain at a server that is not ready or cancelling the old host early.

Keep reading

Let’s grow your business

Tell us about your business. We would love to hear from you. Or call us at (425) 314-1415.

Join the local businesses that grow with us

  • Pawn Fathers
  • Protectee
  • Pinnacle Energy Services
  • See Clearwater Beach
  • Q Blinds
  • Domaine des Florines
  • Track & Field AI
  • Edgewater Commercial Park
  • Colour Play Salon
  • Houston Hurricane & Security