Hosting & VPS ·
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
| Method | Effort | Limits | Best for |
|---|---|---|---|
| Migration plugin (e.g. Duplicator, All-in-One WP Migration, Migrate Guru) | Low | Upload and timeout limits on large sites; some features paid | Small and mid-sized sites |
| New host's migration service | Very low | Timing and process set by the host | Anyone short on time |
| Manual: SFTP/rsync, database export, WP-CLI | Medium to high | None, full control | Large 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)
- 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.
- Take inventory: PHP version, database version, plugins, cron jobs and any email accounts at the old host.
- Full backup of files and database, stored away from the old server.
2. Prepare the new server
- Set the same or a newer PHP version. WordPress.org recommends PHP 8.3 or greater.
- Create an empty database and user.
- 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:
- Copy all files via SFTP or rsync – especially
wp-content. - Export the database (phpMyAdmin or command line) and import it on the new server.
- Update database name, user and password in
wp-config.php. - If the domain changes, replace URLs with
wp search-replace. According to the WP-CLI docs, it handles PHP serialized data correctly, and--dry-runshows 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.
- Home page, posts, pages, images
- Contact form and outgoing email
- Login and admin area
- Shop: cart and checkout in test mode
- Permalinks (if broken, re-save them under Settings)
- HTTPS certificate (some hosts can only issue it after the DNS switch)
Remove the hosts entry afterwards.
5. Cut over
- Change the A record (and AAAA for IPv6) to the new IP.
- Issue the HTTPS certificate on the new server if needed.
- Watch for a few hours: error logs, forms, Search Console.
- Keep the old server running for at least a few days, then cancel.
- 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:
- A short maintenance window: pause checkout for 15–30 minutes, do a final database sync, then switch. With a low TTL the window stays small.
- Pick a low-traffic time, usually late at night in your main market.
- After the switch, put the old server into maintenance mode so no new orders are created there.
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
- Forgetting email: if mailboxes were at the old host, mail stops arriving once you cancel. Sort out MX records first.
- Not lowering the TTL: propagation can take a day or more.
- Mixed content after switching to HTTPS: images still load over http. Fix with
wp search-replace. - Stale caches: clear page cache, object cache and CDN cache after the move.
- Missing cron jobs: real server cron jobs must be recreated on the new server.
- Cancelling the old host too early: without a copy there, there's no way back.
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?
- No time: use your new host's free migration service, then check everything yourself.
- Small site, some confidence: use a migration plugin and check via the hosts file.
- Large site or SSH access: migrate manually with rsync, a database export and WP-CLI.
- Online shop: plan a short maintenance window at your quietest hour.
