Skip to content

Home / Blog

Guide

How to Migrate WordPress Without Downtime

How to Migrate WordPress Without Downtime

Your current host is slow, support takes days, or the renewal bill stings, and you want out. The one thing holding you back is fear: what if the site goes down? What happens to orders, email and rankings? Here’s the reassuring part: you can migrate WordPress without downtime if you do things in the right order. You build and test the new copy quietly, then point visitors to it while the old copy is still running. This guide walks through the whole process, with a checklist and the mistakes that usually cause trouble.

Why sites go down during a move

When someone types your domain, their device asks DNS for your server’s IP address. That answer gets cached in several places: the browser, the operating system and the visitor’s ISP resolver. How long each cache keeps it is set by the record’s TTL (time to live, in seconds). That’s why visitors don’t all switch to the new server at the same moment; they drift over as caches expire. People call this “DNS propagation”. Cloudflare’s explainer on DNS covers the full journey if you’re curious.

During that window, some visitors hit the old server and some hit the new one. That’s fine as long as both work. Downtime comes from getting the order wrong:

  • Cancelling the old hosting too early while some visitors are still being sent there.
  • Switching DNS before testing, so your visitors find the bugs before you do.
  • Editing the old site after copying it, so orders, comments or posts go missing.
  • Forgetting email, so incoming mail stops because MX records changed by accident.

Avoid those four and most of the risk is gone.

Before you start: a prep checklist

  1. Old host access: control panel (e.g. cPanel), FTP and phpMyAdmin.
  2. Domain access: your registrar account, and know where your DNS is actually managed: the registrar, the old host or a third-party DNS provider.
  3. Where your email lives: on the old host or with a separate email provider? This decides how you handle MX records.
  4. A full backup of files and database, stored off the server.
  5. The PHP version on the old server, so you can match it.
  6. A test list: homepage, contact form, checkout, login and your top few pages.
  7. A quiet time slot with low traffic and few orders.

How to migrate WordPress without downtime, step by step

1. Lower the TTL a day or two ahead

Where your DNS is managed, set the TTL on the domain’s A record (and www) to something low, such as 300 seconds. Do this at least one old-TTL period before the move; 24 to 48 hours ahead is a safe habit. Resolvers that cached the record under the old TTL won’t ask again until it expires. Once the move has settled, raise the TTL again; there’s no benefit to keeping it low forever.

2. Copy files and database to the new host

Pick one route:

  • A migration plugin such as Duplicator or All-in-One WP Migration, which suits most small and mid-sized sites.
  • Manually: copy the site folder (especially wp-content), export the database from phpMyAdmin, import it into a new database, then update the database name, user and password (and the database host, if it differs) in wp-config.php.
  • Ask the new host to do it. Many hosts migrate sites for new customers; at Start Bigger it’s free on every hosting plan.

Because the domain isn’t changing, you don’t need to touch URLs in the database. If you tested on a temporary URL, use a tool that handles serialized data, such as WP-CLI’s wp search-replace, never a find-and-replace in the SQL file. The official WordPress migration guide explains why.

3. Test the new server with your hosts file

This is the step that prevents downtime. Your hosts file makes only your computer load the domain from the new server while everyone else still sees the old site.

  • Windows: open Notepad as administrator, then C:\Windows\System32\drivers\etc\hosts.
  • macOS/Linux: edit /etc/hosts with sudo.

Add two lines at the end, using the new server’s IP:

203.0.113.10 example.com
203.0.113.10 www.example.com

Save, flush your DNS cache (ipconfig /flushdns on Windows), and open the site in a private window. A certificate warning is normal at this point, because free SSL certificates are usually issued once the domain actually points to the new server. Work through your test list. Delete those lines when you’re done, or your computer will keep going to that IP indefinitely.

4. Freeze changes and do a final sync

A blog that rarely changes can skip this. For stores and sites that take bookings or sign-ups, stop publishing, turn on maintenance mode for a few minutes and copy the database one last time, along with any new files in wp-content/uploads, so nothing added after the first copy is lost.

5. Switch DNS the right way

Method What changes Speed Best when
Update the A record Only the IP address Fast if TTL was lowered Your DNS stays where it is
Change nameservers Where all records are managed Slower, can take up to 48 hours You want the new host to manage all DNS

Watch your email. Changing nameservers moves every record, including MX, SPF and DKIM. Make sure the new zone has the right mail records before you switch, and if your mailboxes are on the old host, plan their move first. Our guide to business email on your own domain explains these records.

6. Monitor, and don’t cancel the old host yet

  • Watch propagation with a checker such as whatsmydns.net.
  • Confirm SSL has been issued and the site loads over https with no warning.
  • Submit your contact form and check that site emails arrive.
  • Keep the old hosting for at least a week. When its logs show no more visits, take a final backup and cancel.
  • Raise the TTL back up.

Your rollback plan: if you switched via the A record and something breaks that you can’t fix quickly, point the A record back to the old IP. With a low TTL, most visitors return within minutes. Just remember that any orders placed on the new server in the meantime will need moving by hand.

Common post-migration problems

  • The wrong caching plugin. On a LiteSpeed server, LiteSpeed Cache is the natural choice; don’t run a second page-cache plugin alongside it. See what LiteSpeed is.
  • A different PHP version breaking an old plugin. Match the old version first, upgrade later.
  • Site emails not arriving because SMTP settings still reference the old server.
  • Missing cron jobs that lived in the old control panel.
  • Indexing switched off after testing on staging. Check Settings → Reading.

When to hand the move to someone else

If the site takes orders daily, or you’d rather not learn hosts files and DNS records, let someone who does this every day handle it. With Start Bigger hosting plans we move your current site for free, and you can test it before you switch DNS. You also get LiteSpeed and daily JetBackup backups (see our backups policy). If you’d also rather not deal with updates, backups and security afterwards, take a look at our managed site service.

In short

Downtime-free migration is about sequence, not luck. Lower the TTL early, copy the site, test it through your hosts file, freeze changes for the final sync, then switch DNS. Protect your MX records, and keep the old host running until nobody is reaching it. Every visitor then sees a working site, old or new.

Frequently asked questions

How long does DNS propagation take?

It depends on the TTL the record had before you changed it. If you lowered it to around 5 minutes a day or two earlier, most visitors reach the new server quickly. Nameserver changes are slower and can take several hours, sometimes up to 48, because part of that caching is outside your control.

Will moving hosts hurt my Google rankings?

If the domain and URLs stay the same, the move itself changes nothing from a search engine's point of view. What matters is that the site never appears broken during the switch, and that the "Discourage search engines from indexing this site" option is unchecked afterwards.

Will my email stop working during the migration?

Not if you plan for it. Email follows your MX records, not the website's A record. If your mailboxes live on the old host, move them first or keep the MX records pointing where they are until you decide.

Do I need to transfer my domain to a new registrar?

No. Moving hosting and transferring a domain are separate jobs. You only need to edit DNS records or nameservers where the domain is managed today, and you can transfer the domain later if you want to.

How do I move a WooCommerce store without losing orders?

Pick a quiet hour, pause checkout for a few minutes before the final database sync, then switch DNS straight away. For a few days afterwards, check the old host to make sure no orders landed there.

Read next

Troubleshooting

Website Not Loading? A 10-Minute Diagnosis

A quick diagnosis guide for a site that will not load: read the browser error, then check the domain, DNS, the server and WordPress in order, so you know where the problem is and who fixes it.

Domains guide

How to Recover a Domain From a Former Web Developer

Practical steps to get back a domain a former developer or employee registered for you: find the registrant and registrar, gather documents, request a registrant change or transfer code, and prevent it happening again.

Domains guide

Domain Expired? What Happens Next and How to Get It Back

What happens after a domain expires under ICANN rules: the grace period, the redemption period and deletion, plus the recovery steps for each stage and how to stop it happening again.

Ready to start, or have a question first?

We answer on WhatsApp Saturday to Thursday, 9:00 am – 9:00 pm Amman time (GMT+3)

WhatsApp