Hosting & VPS ·

Migrate WordPress to a New Host With Zero Downtime: Step by Step

Migrate WordPress to a New Host With Zero Downtime: Step by Step

Transparency note: Links marked with an asterisk (*) are affiliate links. If you buy a product or book a service through such a link, we receive a small commission at no extra cost to you. Our comparisons and assessments are not influenced by this. This article currently contains no affiliate links. See our affiliate disclosure.

Your current host is too slow, too expensive, or the contract is about to renew at a much higher price. Moving WordPress doesn't have to mean an hour of "site can't be reached". What matters is the right order of steps and a proper check before you switch DNS. This guide walks through the process from backup to test run to cutover, compares the common migration methods and lists the mistakes that cause the most trouble. Requirements and tool behavior are based on official WordPress documentation as of November 2026.

Three ways to migrate at a glance

MethodEffortLimitsBest for
Migration plugin (e.g. Duplicator, All-in-One WP Migration, Migrate Guru)LowUpload and timeout limits on large sites; some features paidSmall and mid-sized sites
New host's migration serviceVery lowTiming and process set by the hostAnyone short on time
Manual: SFTP/rsync, database export, WP-CLIMedium to highNone, full controlLarge sites, users with SSH access

Choosing the new host is a separate decision – our Hostinger vs. Hetzner vs. netcup comparison covers budget VPS options.

The principle: copy first, switch later

A zero-downtime move follows one simple idea: the old site keeps running until the new one has been fully checked. Only then do you point the domain to the new server. Because DNS changes propagate gradually, some visitors will still reach the old server for a while. That's fine as long as a working copy is there.

It only gets tricky on sites where data changes during the move – shops with orders, forums, membership sites. There's a dedicated section on that below.

Step by step

1. Preparation (one to two days ahead)

  1. Lower the TTL. At your DNS provider, set the A record's TTL to a small value such as 300 seconds, so resolvers pick up the later change quickly. Do this at least as long in advance as the old TTL.
  2. Take inventory: PHP version, database version, plugins, cron jobs and any email accounts at the old host.
  3. Full backup of files and database, stored away from the old server.

2. Prepare the new server

  1. Set the same or a newer PHP version. WordPress.org recommends PHP 8.3 or greater.
  2. Create an empty database and user.
  3. Add the domain in the hosting panel, but don't touch DNS yet.

3. Copy the site

With a plugin: create a package on the old site, upload the archive and installer to the new server, run the installer and enter the database credentials.

Manually:

  1. Copy all files via SFTP or rsync – especially wp-content.
  2. Export the database (phpMyAdmin or command line) and import it on the new server.
  3. Update database name, user and password in wp-config.php.
  4. If the domain changes, replace URLs with wp search-replace. According to the WP-CLI docs, it handles PHP serialized data correctly, and --dry-run shows what would change without writing anything. A plain find-and-replace in the SQL file can corrupt serialized theme and widget settings.

4. Check before the world sees it

This is the most important step. You want to see the new site under the real domain without changing DNS. Add the new server's IP for your domain to the hosts file on your own computer – only your machine will then load the new server.

Remove the hosts entry afterwards.

5. Cut over

  1. Change the A record (and AAAA for IPv6) to the new IP.
  2. Issue the HTTPS certificate on the new server if needed.
  3. Watch for a few hours: error logs, forms, Search Console.
  4. Keep the old server running for at least a few days, then cancel.
  5. Raise the TTL back to a normal value.

If your domain lives at a separate registrar or DNS provider, cutover is a single record change – one more reason to separate domain and hosting.

Special case: shops and membership sites

Orders placed during the move land on the old server and are missing on the new one. Options:

Moving from shared hosting to a VPS

When you move to your own virtual server, you also take over jobs your host used to handle: installing and updating web server, PHP and database (or using a server panel), HTTPS certificates, firewall and SSH keys, backups, and outgoing mail. Many VPS providers block outbound mail ports on new accounts, so an external SMTP service is usually the better choice for contact forms. Budget more time for your first VPS move. If you run several apps on the new box, a reverse proxy keeps things tidy.

Common mistakes

What does a migration cost?

With a plugin or manually: just your time – roughly an afternoon for a small blog, including checks. Many migration plugins are free in their basic version, with paid tiers for large sites. Host migration services are often free. Also budget a few days of paying for two hosts at once.

FAQ

How long will my site be offline?

If you follow this process, not at all. Old and new servers serve the same site in parallel until the DNS change has propagated.

Will changing hosts hurt my Google rankings?

Not if the domain and URLs stay the same and the site stays reachable. A faster server can even help. If the domain changes, you also need redirects.

Do I have to transfer my domain to the new host?

No. Updating the DNS records is enough; the domain can stay with your current registrar.

Which migration plugin is best?

For small sites, the free versions of the well-known plugins are fine. For large sites or upload-limit problems, the manual route with SSH and WP-CLI is more reliable.

Who should do what?

← All articles