You can migrate a WordPress site with no visible downtime by building a complete copy on the new server first, testing it privately, and only then pointing your domain at it. The old site keeps serving visitors the whole time. When DNS switches over, people move from one working copy to another without noticing.
The parts that cause trouble are the ones people skip: lowering the DNS TTL in advance, testing the new server before the switch, and handling anything that changed on the old site during the move, like new orders or form entries. Get those right and a migration is routine.
Here's the process I follow when moving client sites between hosts.
Decide what kind of migration it is
There are three common cases, and they need slightly different handling:
| Migration type | What changes | Main risk |
|---|---|---|
| Same domain, new host | Server only | DNS timing, missing server settings |
| New domain, same or new host | URLs everywhere | Rankings and links, if redirects are wrong |
| HTTP to HTTPS, or www change | URL format | Mixed content, redirect loops |
This guide focuses on the first case, which is the most common. If you're changing domain as well, everything here still applies, plus a full redirect plan and Google Search Console's Change of Address tool. If the move is part of a wider rebuild, also read my website redesign checklist.
Prepare before you touch anything
Preparation is what makes the switch boring, which is what you want.
- Take a full backup of files and database, and download it to your own computer or cloud storage.
- Lower the DNS TTL. TTL (time to live) tells other servers how long to cache your DNS records. If yours is set to a day, change it to 300 seconds (five minutes) at least 24 to 48 hours before the move. Then when you change the IP address, the world picks it up within minutes rather than hours.
- Check the new server's PHP version matches or is newer than the old one, and that required PHP extensions are present.
- Note special server settings: custom
.htaccessrules, cron jobs, PHP limits, email accounts on the old host. - Find out where email is handled. If email runs on the old host, you'll need to move it or point MX records elsewhere. Many "website migration broke our email" problems start here.
- Pick a quiet time for the switch, based on your analytics.
Copy the site to the new server
There are several ways to copy the files and database. Which I use depends on site size and access.
- Migration plugin. Plugins like Duplicator, All-in-One WP Migration or Migrate Guru package the site and restore it elsewhere. Fine for small and medium sites. Check upload size limits on free versions.
- Host migration tools. Many managed WordPress hosts offer a free migration plugin or service.
- Manual (SSH and WP-CLI). For large sites, I copy files with
rsyncand export the database with WP-CLI. It's the most reliable for big sites because nothing times out in a browser.
A manual copy looks roughly like this:
# On the old server: export the database
wp db export site.sql
# Copy files and the SQL dump to the new server
rsync -avz --progress ~/public_html/ newuser@new-server:~/public_html/
# On the new server: create wp-config.php database details, then import
wp db import site.sql
# Only if the domain or URL format is changing
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --all-tables --dry-runRun search-replace with --dry-run first and read the output. WP-CLI's search-replace handles serialized data correctly, which a plain text replace on the SQL file does not. Breaking serialized data is a classic way to lose widget and page builder settings.
If the domain stays the same, you don't need search-replace at all.
Test the new site before switching DNS
This is the step that prevents downtime. You need to see the new server's copy under your real domain before the public does.
The easiest way is your computer's hosts file. Add a line that points your domain to the new server's IP address, only on your machine:
203.0.113.25 example.com www.example.comOn macOS and Linux the file is /etc/hosts. On Windows it's C:\Windows\System32\drivers\etc\hosts. Some hosts also give you a temporary preview URL.
Now browse your site and test:
- Home, key service pages, blog posts, images.
- Logging into the dashboard.
- Contact forms (do they send, and to the right address?).
- WooCommerce: add to cart, checkout with a test payment, order emails.
- Search, filters, membership logins, anything dynamic.
- SSL certificate: install it on the new server before the switch. Many hosts can issue a Let's Encrypt certificate only after DNS points to them, so check whether yours supports pre-issuing or importing one, or plan a short window for it.
- Permalinks: if pages 404 except the homepage, re-save permalinks or check
.htaccess/ Nginx rules.
Remove the hosts file line when you're done, so you're not confused later.
Handle changes during the move
On a brochure site, nothing much changes between copying and switching. On a shop or membership site, new orders, users and form entries keep arriving on the old server.
My approach for busy sites:
- Do the first full copy and testing a day or two ahead.
- At switch time, put a short content freeze in place: ask staff not to edit content.
- Re-sync the database (and uploads folder) right before switching DNS, so the new server has the latest orders.
- Switch DNS immediately after the final sync.
For very busy shops, a brief maintenance mode of a few minutes during the final sync is safer than risking orders landing on the old server after you've copied it. Those few minutes are planned and short, which is very different from unexpected downtime.
Switch DNS and monitor
With a low TTL already in place, update the A record (and AAAA if you use IPv6) to the new server's IP. If you use a CDN or DNS service like Cloudflare, the change is made there.
After switching:
- Check the site from your phone on mobile data, which won't have your hosts file entry.
- Use a DNS propagation checker to see the new IP spreading.
- Watch the old server's access logs. Traffic there should drop to almost nothing within the TTL window.
- Place a real test order or form submission.
- Check that scheduled tasks (WP-Cron or a real cron job) are running on the new server.
Keep the old hosting active for at least a week or two. If something was missed, you can copy it across. Once you're confident, raise the TTL back to a normal value.
After the migration
A few follow-ups that are easy to forget:
- Clear all caches: plugin cache, server cache, CDN.
- Re-check Google Search Console for crawl errors over the next couple of weeks.
- If the domain changed, use Search Console's Change of Address tool and confirm every old URL redirects with a 301.
- Update any hard-coded references in third-party services: payment gateway webhooks, SMTP settings, API allowlists by IP.
- Run a speed test. A new host should be at least as fast. If not, check caching and PHP settings.
WordPress's own advanced administration handbook has a section on moving WordPress that is a good reference if you're doing a domain change by hand.
What to do next
A WordPress migration without downtime is about order of operations: lower the TTL early, build and test a full copy on the new server, sync any last changes, then switch DNS and watch. The site never goes dark because there's always a working copy serving visitors.
If you'd rather not handle the server side yourself, I do migrations as part of my WordPress development service, including shops and large sites. Tell me where you're moving from and to and I'll outline the plan.