The Wild

WordPress Migration Checklist for Zero Downtime

· 6 min read · Mammals

In this article
  1. Why Zero Downtime Matters
  2. Pre-Migration Preparation
  3. Staging the New Site
  4. Testing Everything Thoroughly
  5. The Switch: DNS vs. Server-Level
  6. Post-Migration Checks
  7. Common Problems and How to Avoid Them
  8. Costs and Tools
  9. Frequently Asked Questions

The short answer: a zero-downtime WordPress migration is achieved by staging the new site, switching DNS (or the server’s document root) only after everything is tested, and keeping the old site live until the switch is instant. In practice, this means you never delete or overwrite the live site; you prepare a full copy elsewhere, verify it, then redirect traffic in one step.

Why Zero Downtime Matters

Even a few minutes of downtime can cost you revenue, search rankings, and user trust. For an e-commerce store, every minute offline is lost sales. For a blog, readers may hit a 503 error and never come back. Search engines also notice when a site becomes unreachable, which can temporarily affect rankings. The goal is to make the move invisible to visitors—they should never see a maintenance page, a broken image, or a “site unavailable” message.

Pre-Migration Preparation

Before you touch anything, you need a complete snapshot of your current site. This includes:

  • Files: All WordPress core files, themes, plugins, and uploads (the wp-content folder is the big one).
  • Database: A full export of your MySQL database, including all tables.
  • Configuration: Your wp-config.php file, which holds database credentials and security keys.
  • Environment details: PHP version, MySQL version, and any server-specific settings (like .htaccess rules or Nginx config).

Use a plugin like UpdraftPlus or Duplicator, or do it manually via FTP and phpMyAdmin. The key is to have a verified backup that you can restore if something goes wrong. Test the backup by restoring it on a local server or a subdomain before you proceed.

Staging the New Site

Create a staging environment—a hidden copy of your site on the same server or a different one. This is where you do the actual migration work. You can use a staging plugin (e.g., WP Staging), a subdomain like staging.yourdomain.com, or a local development environment. The staging site must have its own database and its own file structure. It should not interfere with the live site.

Once the staging site is up, update WordPress, themes, and plugins. Test every page, especially forms, checkout flows, and any custom functionality. This is also the time to fix any issues you’ve been putting off—because after the switch, you don’t want to debug on a live site.

Testing Everything Thoroughly

Testing is not just clicking a few links. You need to verify:

  • All pages load correctly, including images and scripts.
  • Forms submit and emails send (use a test email address).
  • E-commerce transactions work end-to-end (use a sandbox payment gateway).
  • Links are correct—no broken internal links, no mixed content (HTTPS vs HTTP).
  • Search functionality works, if you have it.
  • Mobile responsiveness is fine.
  • Performance is acceptable—run a speed test.

Also, check that your SSL certificate is installed correctly on the staging site. Many migrations fail because the SSL certificate is not set up for the staging domain, which causes mixed-content warnings.

The Switch: DNS vs. Server-Level

There are two main ways to flip the switch without downtime:

  1. DNS change: If your new site is on a different server, you update the DNS A record (or CNAME) to point to the new server’s IP address. DNS propagation can take anywhere from a few minutes to 48 hours, but because you keep the old site live until the TTL (time to live) expires, visitors still see the old site until the switch is complete. To minimize risk, set the TTL to a low value (e.g., 300 seconds) at least 24 hours before the switch.
  2. Server-level switch: If you’re moving to a new directory on the same server, you can change the document root in your web server configuration (Apache or Nginx) and then reload the server. This is instant and gives you full control.

Whichever method you choose, the golden rule is: never delete the old site until the new one is fully live and tested. Keep the old files and database intact as a fallback.

Post-Migration Checks

After the switch, you need to verify that everything is working on the live domain. Check:

  • Homepage and a few key pages load correctly.
  • No mixed-content warnings (your site should be fully HTTPS).
  • Forms and checkout work (do a test order).
  • Search engine visibility—check that your robots.txt is not blocking the site.
  • Update any hardcoded URLs in the database (use a search-replace tool like WP-CLI or Better Search Replace).

Also, monitor your error logs for a few days. Common issues after migration include missing files, database connection errors, and plugin conflicts that only appear on the live server.

Common Problems and How to Avoid Them

One of the most frequent mistakes is forgetting to update the wp_options table’s siteurl and home values. If you don’t, the site will redirect to the old domain. Use a search-replace tool that updates the database correctly, not just a simple find-and-replace in a text editor, because serialized data in WordPress can get corrupted.

Another issue is file permissions. If your files have the wrong ownership or permissions, you might see a white screen or “Error establishing a database connection.” Ensure that the web server user (e.g., www-data on Apache) has read access to all files and write access to wp-content.

Finally, don’t forget about caching. Both server-side caching (like Varnish or Redis) and browser caching can cause visitors to see the old version of the site. Clear all caches after the switch, and consider using a maintenance plugin to send proper 503 headers during the switch—but only if you absolutely must have a brief maintenance page. In a true zero-downtime migration, you don’t need one.

Costs and Tools

The cost of a zero-downtime migration varies. If you do it yourself, the main cost is your time. You might pay for a premium backup plugin (around $30–$100 per year) or a migration service (like WP Engine’s migration, which is free if you’re moving to their hosting). If you hire a developer, expect to pay anywhere from $100 to $500+ depending on complexity. The most expensive part is usually the staging environment if you need a separate server—but many hosts include staging as part of their plan.

Free tools like Duplicator, UpdraftPlus, and WP-CLI can handle most migrations. For DNS, you can use your domain registrar’s control panel at no extra cost. The key is to plan and test, not to cut corners.

Frequently Asked Questions

How long does DNS propagation take?

DNS propagation can take anywhere from a few minutes to 48 hours, but with a low TTL set beforehand, most users will see the new site within minutes. The old site remains live during propagation, so there’s no downtime.

Can I migrate without a staging site?

Technically yes, but it’s risky. Without a staging site, you’re making changes directly on the live server, which can cause downtime if something breaks. A staging site is the safest way to ensure zero downtime.

What if I forget to update the site URL in the database?

If you forget, visitors will be redirected to the old domain, and the new site will appear broken. Use a search-replace tool like WP-CLI’s wp search-replace to update all URLs in the database after migration.

Is it safe to delete the old site after migration?

Only after you’ve confirmed that the new site is fully functional and you’ve kept a backup of the old site. It’s wise to keep the old site for at least a week as a fallback.

Do I need to update my SSL certificate?

Yes, if you’re moving to a new domain or server, you’ll need to install an SSL certificate for the new domain. Most hosts provide free SSL certificates via Let’s Encrypt.