Hosting & Migration 6 min read

Moving a WordPress site between hosts: my zero-downtime process

How to move a WordPress site to a new host with zero downtime: preparation, copying files and database, testing before DNS changes, switching DNS and checks after.

Usman Muhammad UsmanUpdated October 13, 2026
Moving a WordPress site between hosts: my zero-downtime process

Moving a WordPress site to a new host can improve speed, support and reliability, but a careless move means downtime, broken emails or lost orders. The key is to set everything up and test it on the new host before visitors are sent there. This is the zero-downtime process I use for client migrations.

Plan the move

List everything the current hosting provides: the website, email accounts, DNS, SSL, cron jobs, backups and any other sites or subdomains. Many owners discover their email is hosted with the same provider only when it stops working. Decide where each service will live after the move.

Choose a quiet time for the DNS switch, such as early morning on a weekday. For stores, avoid sales periods. Let your team know the plan and the expected timing.

Lower the DNS TTL

TTL, time to live, controls how long DNS records are cached. A day or two before the move, lower the TTL on your A and CNAME records to a few minutes, such as 300 seconds. When you switch, the change will spread much faster.

If you do not control DNS, ask whoever does to lower the TTL. See DNS records explained.

Zero-downtime move
  1. 1Lower TTLA day or two before
  2. 2Copy siteFiles and database
  3. 3Test via hosts fileBefore DNS change
  4. 4Switch DNSKeep email records
  5. 5Verify and keep old hostA week or two

Prepare the new host

Create the hosting account, add your domain and set the PHP version to match or exceed the old host. Create a database and user if needed. Many managed hosts offer free migration tools or services that copy the site for you.

Check that the new host supports what the site needs: PHP extensions, memory limits, object caching and any special requirements for WooCommerce or other plugins.

Copy files and database

Use a migration plugin such as Duplicator, All-in-One WP Migration, Migrate Guru or the host’s own tool, or copy files by SFTP and export the database with phpMyAdmin or WP-CLI. Plugins handle URL changes and serialised data automatically.

Copy the entire wp-content folder, including uploads, themes and plugins, and the database. Check that wp-config.php on the new host has the correct database details.

Test before switching DNS

Before changing DNS, test the site on the new host. Use a temporary URL provided by the host, or edit your computer’s hosts file to point your domain to the new server’s IP address. This lets you browse the real domain on the new host while everyone else still sees the old one.

Check the homepage, key pages, forms, login, search and, for stores, cart and checkout. Look for missing images, broken layouts and errors. Fix any issues now, while the old site still serves visitors.

SSL on the new host

Make sure an SSL certificate is ready on the new host. Some hosts can issue a certificate before DNS points to them using DNS validation; others issue it automatically right after the switch. Plan for this so visitors do not see security warnings.

If you use Cloudflare, SSL between visitors and Cloudflare continues to work, and the origin certificate on the new host can be set up in advance. See setting up SSL and HTTPS.

Freeze changes during the move

For brochure sites, ask editors not to publish content during the move. For stores and membership sites, new orders and registrations on the old host after the copy would be lost. Plan a final sync just before switching, or briefly enable maintenance mode for checkout.

Some migration tools support incremental syncs. For busy stores, copying the database again immediately before the DNS switch minimises the gap.

Switch DNS

Update the A record, and CNAME for www, to point to the new host’s IP or hostname. If the new host manages DNS, change the nameservers instead, after recreating every DNS record, including email records, on the new DNS provider.

With a low TTL, most visitors reach the new host within minutes. Some networks cache longer, so keep the old host running for a few days.

Check email

If email stays with the old host or another provider, make sure MX, SPF, DKIM and DMARC records are unchanged or recreated exactly. If email moves to a new provider, plan that move separately and migrate mailboxes. See setting up business email.

Test sending and receiving email immediately after the switch, and check that website form notifications still arrive.

After the switch

Clear all caches, test the site again from different devices and networks, and check that SSL is active. Make sure cron jobs, scheduled backups and security plugins are running on the new host. Submit the sitemap in Search Console if anything changed.

Monitor uptime and error logs for a few days. Compare speed with the old host using PageSpeed Insights.

Keep the old host briefly

Do not cancel the old hosting immediately. Keep it for at least a week or two in case something was missed, such as files outside WordPress, old email or a forgotten subdomain. Then take a final backup and cancel.

Download any old backups or logs you might need before the account closes.

Common problems and fixes

Mixed content warnings mean some resources still load over http; fix URLs in the database. Login loops often come from cookies or URL settings; check the site URL and clear cookies. Missing images usually mean uploads were not fully copied.

Errors establishing a database connection mean the database details in wp-config.php are wrong. See fixing database connection errors.

Getting help

Zero-downtime host moves are a regular part of my hosting and migration service. I handle the copy, testing, DNS switch and email so nothing is interrupted.

If you are choosing a new host, read choosing WordPress hosting first.

Key takeaways

  • Lower DNS TTL a day or two before the move.
  • Test the site on the new host before changing DNS.
  • Keep email records unchanged unless email is moving too.
  • Keep the old hosting for a week or two after switching.

Frequently asked questions

Will my site go offline during a host move?

Not if you test first and switch DNS with a low TTL.

How long does DNS propagation take?

Usually minutes with a low TTL, though some networks cache longer.

Will moving hosts affect SEO?

Not if URLs stay the same and the site works correctly. Faster hosting can help.

What is the hosts file trick?

Editing your computer's hosts file to point your domain to the new server, so you can test it privately.

Can my new host migrate the site for me?

Many managed hosts offer free migrations. Still test before switching DNS.

What about WooCommerce orders during the move?

Sync the database just before switching or briefly pause checkout to avoid losing orders.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Hosting & Migration

All Hosting & Migration articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.