ArticlesHosting & domains

How to move your website to a new host without downtime

Moving to a new host sounds risky, but most of the risk is in the order things are done. Copy first, test, switch the DNS, and only then cancel the old plan.

How do you move a website to a new host without downtime?

Copy the site and its database to the new host while the old one keeps running, test the copy on a temporary address, lower the DNS TTL a day ahead, then point the domain to the new server. Visitors move over gradually as DNS updates, and both servers show the same site in the meantime. Keep the old hosting until everything, including email, has worked on the new host for at least a week.

Before you start: make a list

Most failed moves fail because something was forgotten, not because the copy went wrong. Write down:

Then take a full backup of the site and its database and keep a copy off the old server.

Step by step

  1. Set up the new hosting with the same PHP version and settings the site runs on today.
  2. Copy the site. For WordPress, a migration plugin or the new host’s migration tool copies files and database together. Many hosts, Hostinger among them, offer to move a site for free.
  3. Test on a temporary address. Open the copy on the new host’s preview link, or point only your own computer to it through your hosts file. Click through the main pages, send a test through every form, and try a test order if it’s a shop.
  4. Lower the DNS TTL on the old DNS records to five minutes, a day before the switch. Changes then spread quickly.
  5. Copy all DNS records to the new DNS, if the DNS is moving too. Email records, MX, SPF, DKIM and DMARC, are the ones that are easiest to miss.
  6. Switch. Point the domain’s A record, or its name servers, to the new host. For a shop or a site with bookings, do it at a quiet time, and pause changes to content for a few hours.
  7. Turn on SSL on the new host as soon as the domain points to it, and check that every page loads over https.

After the switch

When to get help

A simple brochure site is a manageable do-it-yourself job if you’re comfortable with DNS. Get help when the site takes orders or bookings, when email is on the old host, when nobody knows where the DNS is managed, or when the old host’s login is lost. Those are the moves where a missing record means lost email or lost sales.

Want it moved for you? We’re a Hostinger partner. We set up the new hosting in your name, move the site and email, copy every DNS record and check everything works before the old plan is cancelled. Get in touch.

Questions we get

How long does it take to move a website?

The work for a typical small business site is a few hours. DNS changes reach most visitors within a few hours, and almost everyone within 48 hours.

Will moving hosts hurt my Google rankings?

Not if the addresses stay the same and the site works the same. Changing host doesn’t change your URLs. Changing the domain or page addresses is a different job that needs redirects.

What happens to my email when I move?

It depends where the email is. If it’s with Google Workspace or Microsoft 365, it stays put as long as the email DNS records are copied correctly. If it’s on the old host, the mailboxes have to be moved too, which is the part that most often goes wrong.

Do I need to move the domain as well?

No. The domain can stay where it is registered and just point to the new server. Moving the domain to the same provider is optional, and easier to do afterwards as its own step.

Want help with this?

We’re a Hostinger partner. We set up your hosting, domain and business email in your name, move your site over and handle the DNS, so it all just works. See Hosting & domains, or tell us what you’re working on and we’ll reply within one business day.