Migrating a WordPress site without downtime

If you would rather have this handled for you, our WordPress maintenance service takes care of this end to end. Moving a WordPress site to a new host, domain, or server sounds risky, and done carelessly it can be. A botched migration can mean broken pages, lost data, or hours of downtime during which your site is unreachable. But with the right approach, a WordPress migration can be completely smooth, with no downtime at all.

This guide walks through how to migrate a WordPress site without downtime or data loss, from preparation through to going live safely.

Why a Careful WordPress Migration Matters

A website migration touches every part of your site: files, database, settings, and domain configuration. If any piece is missed or mishandled, the result can be a broken or unavailable site.

For a business, downtime during a migration means lost visitors, lost sales, and a poor impression. Search engines can also stumble if the move is handled badly, affecting your rankings.

The goal of a good migration is that your visitors never notice it happened. The site simply continues working, faster or better than before.

Step 1: Prepare and Back Up

Preparation is where a smooth migration is won or lost. Before touching anything, make a complete backup of your site’s files and database.

This backup is your safety net. If anything goes wrong during the move, you can restore and try again without losing data. Our WordPress backup guide explains how to do this properly.

Take a moment to also note your current settings, plugins, and any custom configuration, so nothing is forgotten during the move.

Lower Your DNS TTL a Day or Two Ahead

Every DNS record has a TTL (time to live) that tells resolvers how long to cache it. If yours is set to several hours, some visitors will keep reaching the old server long after you switch. A day or two before the move, lower the TTL on the records you will change to a few minutes, for example 300 seconds. Once the migration has settled, you can raise it again.

While you are in the DNS settings, write down every existing record, especially MX records for email. Moving the website should not move or break your email, and a missing record is one of the most common migration surprises.

Step 2: Set Up the New Environment

Prepare the destination before switching anything over. Set up the new hosting or server, and copy your files and database across.

At this stage, your live site is still running untouched. You are building a working copy in the new location, ready to be tested before anyone is sent to it.

There are three common ways to copy the site across:

  • Your new host’s migration tool or service, which many hosts offer and is often the least effort
  • A migration plugin that packages files and database into one archive and unpacks it on the new server
  • A manual move: export the database with wp db export, copy the files with SFTP or rsync, import the database on the new server and update wp-config.php with the new database details

Match the PHP version on the new server to the old one, or to a version you have already tested, so you are not changing two things at once. If the domain or URL is changing, update links in the database with a tool that understands serialized data, such as wp search-replace. A simple text replace can break widgets and plugin settings. The WordPress handbook on migrating WordPress covers the manual process in more detail.

If you are moving because your current hosting is struggling, it is worth reading our comparison of managed and shared WordPress hosting before choosing the destination.

Step 3: Test Everything Before Going Live

This is the step that prevents downtime and nasty surprises. Before pointing visitors to the new site, test it thoroughly in its new home.

  • Check that all pages load and display correctly
  • Test forms, search, and any interactive features
  • On a store, complete a full test checkout
  • Confirm images and media are all present
  • Check the site on both desktop and mobile

The secret to a zero-downtime migration is simple: get the new site fully working and tested before you switch a single visitor over to it.

Only once you are confident everything works should you proceed to the final switch.

To test the new server on your real domain before DNS changes, add a line to your computer’s hosts file that points the domain at the new server’s IP address. Your browser then loads the new copy while everyone else still sees the old one. Some hosts also provide a temporary preview URL. It works like a staging site for the move: you find problems in private.

Handling New Content During the Migration

Between copying the database and switching DNS, the old site keeps working. Anything added there, such as posts, comments, form entries or orders, does not exist on the new server yet.

  • Brochure sites and blogs: agree a short content freeze with your editors from the final copy until DNS has switched
  • Stores and membership sites: do the bulk copy early, then make a final database sync at your quietest hour, immediately before the DNS change
  • Form entries: if your form plugin also emails submissions, you have a record even if a few entries land on the old server during propagation

Step 4: Switch Over Smoothly

With the new site tested and ready, you can direct traffic to it. Because the destination is already working, visitors move seamlessly from the old site to the new one.

To avoid any gap, keep the old site in place until the switch has fully propagated and you have confirmed the new site is serving everyone correctly. Only then retire the old environment.

Make sure the new server can serve HTTPS from the first minute. If your host issues certificates automatically only after DNS points at it, expect a short window and plan the switch for a quiet time, or upload a certificate in advance where your host allows it.

If the Domain Is Changing Too

Moving to a new domain needs extra work for search. Set up 301 redirects from every old URL to its new equivalent, and submit a Change of Address in Google Search Console for the old domain. Google’s guide to site moves with URL changes recommends keeping the redirects in place for as long as possible, generally at least one year.

Step 5: Verify After the Move

The job is not finished the moment the switch happens. Check the live site again to confirm everything is working in its new home.

Look out for broken links, missing images, or any settings that did not carry over. Catching and fixing these promptly ensures visitors get a flawless experience. Our guide on broken links and 404 errors can help here.

Work through this post-migration checklist:

  • HTTPS loads without warnings and HTTP redirects to HTTPS
  • Permalinks work on inner pages; if they return 404, re-save Settings > Permalinks
  • Forms and order notifications send email from the new server
  • Scheduled tasks run, including any server cron job that replaced WP-Cron on the old host
  • Caching and any CDN point at the new server, and old caches are cleared
  • Backups and uptime monitoring are set up on the new host before the old one is cancelled

Common WordPress Migration Mistakes to Avoid

Most migration disasters come down to a handful of avoidable mistakes. Knowing them in advance is the best way to sidestep them.

The most common is skipping the backup. Starting a migration without a complete, working backup means that if anything goes wrong, there is no safe way back. This single step turns potential catastrophes into minor setbacks.

Another is switching traffic to the new site before testing it properly. If you point visitors to a site you have not fully checked, they become your testers, and any problems play out in public. Thorough testing beforehand keeps issues private.

Forgetting about redirects is a third. When URLs change during a move, missing redirects create broken links and can harm your SEO. Finally, retiring the old site too soon, before the switch has fully settled, can leave some visitors stranded. Patience at each stage is what makes a migration feel seamless.

Frequently Asked Questions

Will my site go down during migration?

It does not have to. By building and testing the new site before switching traffic to it, you can migrate with no downtime for your visitors.

Will I lose data when migrating WordPress?

Not if you back up first and migrate carefully. A complete backup ensures that even if something goes wrong, no data is lost.

Does migrating affect my SEO?

A well-handled migration preserves your SEO. Keeping URLs consistent, setting up any necessary redirects, and testing thoroughly prevents ranking issues.

How long does a WordPress migration take?

It varies with the size and complexity of the site, but careful testing is always worth the time. Rushing the process is where problems usually occur.

Should I use a plugin or migrate WordPress manually?

A plugin or your host’s migration service is fine for most small and medium sites. Large sites, stores with constant orders, and setups with custom server configuration are often easier to move manually, because you control each step and can run a final database sync just before switching.

For further reading, the official WordPress guide to moving your site offers helpful, authoritative guidance.

Move With Confidence

A WordPress migration does not have to be stressful or risky. With preparation, thorough testing, and a smooth switch-over, you can move your site with no downtime and no data loss.

BlueBotts handles WordPress migrations carefully and safely, so your site moves without a hitch. Request a free site audit or get in touch to plan your migration.

Filed under
Is your WordPress site as healthy as it should be?

Get a free audit covering security, updates, backups, and performance gaps. Takes 60 seconds to request and costs nothing.

Get your free audit