Skip to content
Websites · Costs and moving

Moving your website to a new host without downtime

Move your website to a new host without it going offline or breaking your email: back up, test first, switch DNS, then cancel the old host.

By Miro, Wave Digital. Updated .

Set the site up and test it on the new host while the old one keeps running. Then point your domain's DNS at the new host, and cancel the old one only once everything checks out.

Timeline of moving a website to a new host
The old host keeps running until the new one has been checked.

You don't need to transfer your domain to change host. You only change where it points.

Before you start

  1. Get the logins for the old host, the domain registrar and wherever your DNS is managed. The nameservers in your registrar account show where DNS lives.
  2. Find out where your email is hosted. If the old web host runs it, you're moving email too, which is a bigger job.
  3. Download a full backup of every file and the database.

Set up and test on the new host

Copy the site across and check it before visitors see it, using the new host's preview link or your computer's hosts file. Click through every page, submit the contact form and test any shop or bookings.

For WordPress, use a migration plugin, or copy the files, import the database and update wp-config.php. If the address changes, use a search-and-replace plugin or WP-CLI's search-replace, since a plain find-and-replace can break data.

Make the switch

  1. A day or two ahead, lower the TTL on the records you'll change. At 86400 seconds, a change can take up to 24 hours (Google).
  2. If DNS is moving too, copy every email record (MX, SPF, DKIM, DMARC) to the new DNS character for character.
  3. Change the A record to the new host's IP address, and the www record as the new host tells you.
  4. Ask the new host how they handle the SSL certificate. Let's Encrypt usually needs the domain pointing at the new server first. See the SSL certificate guide.
Google Admin Toolbox Dig showing an A record lookup with its TTL
An A record lookup. The TTL is how long the answer is remembered.

Check, then cancel

Check the site loads with the padlock, with and without www, old page addresses still work, the contact form reaches your inbox, and email comes and goes.

When to get help

A small brochure site with email elsewhere is manageable if you're careful. It gets risky when email is on the same host, you run a shop or bookings, or you can't find all the logins. A missing email record can go unnoticed until a customer asks why you never replied.

If the site goes down mid-move, see the website down checklist. Once you've moved, our free website check looks at your site the way a customer would.

Is your site slow on phones, out of date or marked "Not secure"?

Put in your web address and find out free in about 30 seconds.

Rather not deal with this yourself?

Moving your website to us is included in Website Cover. We copy your email settings across and test the new site before we switch it over.

Website Cover is $95 a month + GST. We move your website over, fix this and everything else on our list, and keep it fixed. No contract.