Skip to content

Tech news, reviews & software deals, plus the team to build it.

Managed WordPress Cloud & Hosting How-To

How to Move a WordPress Site to a New Host With No Downtime

Move a WordPress site to a new host with no downtime: plugin and manual methods, search-replace, DNS and TTL, SSL, hosts file testing and common fixes.

Teczpert Editorial · 12 min read
How to Move a WordPress Site to a New Host With No Downtime
Pexels, Pexels License

You can move a WordPress site to a new host without a minute of downtime if you do it in the right order: copy the site to the new server first, test it there while the old host keeps serving visitors, and only then point your domain at the new server. The old site stays live the whole time, so nobody notices the switch.

There are two ways to do the copy. A migration plugin such as Duplicator, All-in-One WP Migration or Migrate Guru packages everything for you and is the right choice for most small and medium sites. The manual method (copy the files, export the database, edit wp-config.php, run a search-replace) takes longer but works on any site, any size, and teaches you exactly what moved. This guide covers both, plus the DNS, SSL and testing steps that actually decide whether visitors see an outage.

We based the steps on WordPress's official migration documentation, the WP-CLI handbook and each plugin's own listing as of November 27, 2026. Plugin versions and prices change often, so check the linked pages before you start.

Key takeaways

  • Lower your DNS TTL to about 300 seconds a day or two before the move, so the final switch spreads quickly.
  • Migrate Guru is free and handles sites up to 200 GB; All-in-One WP Migration is the simplest for small sites; Duplicator suits people who also want scheduled backups.
  • For the manual method, always use a serialization-safe search-replace (WP-CLI or a plugin), never a plain find and replace in a SQL file.
  • Test the new server through your hosts file before you touch DNS, then keep the old hosting account active for at least a week.
200 GBmaximum site size Migrate Guru says it can moveWordPress.org, November 2026
5sites per user per month on Migrate Guru's free serviceWordPress.org, November 2026
5M+active installs of All-in-One WP MigrationWordPress.org, November 2026
$79a year for Duplicator Pro Basic (2 sites) at full priceDuplicator, November 2026

Before you start: a 10-minute checklist

Most failed migrations go wrong before the first file is copied. Spend a few minutes on these checks and you'll avoid nearly every error in the troubleshooting section below.

  1. Take a full backup on the old host. Files and database, stored off the server (your computer or cloud storage). This is your undo button.
  2. Note your PHP version. Look in Tools > Site Health > Info > Server. Set the new host to the same version or newer, so plugins don't break on arrival.
  3. Write down where DNS lives. Your domain's nameservers may point to your registrar, your old host or a service like Cloudflare. That's where you'll change records later.
  4. Check your email setup. If your email runs on the old host's mail server, moving the website does not move your inboxes. Leave MX records alone unless you're deliberately moving email too.
  5. Pause changes. Tell editors to stop publishing, and if you run a store, plan the final copy for a quiet hour so no orders land on the old server after you've copied it.
  6. Don't cancel the old plan yet. Keep it running until the new site has been live and stable for at least a week.

Method 1: Move a WordPress site to a new host with a plugin

A migration plugin is the fastest route for most people. The three below cover almost every situation, and they work in slightly different ways.

PluginCostSize limitsHow it moves the siteBest for
Migrate GuruFreeUp to 200 GB; 5 sites per user per monthServer to server through BlogVault's systemsLarge sites and people who don't want to download big files
All-in-One WP MigrationFree, paid Unlimited ExtensionImport size set by your host's upload limit on the free versionExport one .wpress file, import it on the new siteSmall sites and beginners
DuplicatorFree version; Pro from $79 a yearDepends on server resourcesPackage (archive plus installer.php), or drag-and-drop and server-to-server import in ProPeople who also want scheduled backups

Migrate Guru (best for big sites)

Migrate Guru is free and does the heavy lifting on its own servers, so your old host's PHP time limits don't get in the way. According to its WordPress.org listing, it handles sites up to 200 GB and moves a 1 GB site in under 30 minutes, though that's an estimate. The free service is limited to five sites per user per month (each site can be moved as many times as you like), and developers can ask for a higher limit.

  1. Install a fresh, empty WordPress on the new host. Most hosts do this in one click.
  2. Install Migrate Guru on the old site, enter your email and choose the destination host from the list.
  3. Paste the migration key from the new site (or enter FTP or cPanel details as a fallback) and click Migrate.
  4. Wait for the confirmation email, then test the new copy as described in the testing section.

One thing for UK and EU readers: Migrate Guru routes your site data through BlogVault's infrastructure. If you run a site that handles personal data under GDPR or UK GDPR, check that this processing is covered in your records before you use it.

All-in-One WP Migration (simplest for small sites)

All-in-One WP Migration has more than 5 million active installs and the easiest interface of the three. You export your whole site as one .wpress file, install the plugin on a fresh WordPress at the new host and import the file. The catch is size: the plugin's own listing says your hosting company decides how large a file you can upload. If your backup is bigger than the new host's upload limit, either ask the host to raise upload_max_filesize and post_max_size, or buy the paid Unlimited Extension, which works around the limit and adds one-click restore from the Backups page.

Duplicator (best if you also want backups)

Duplicator builds a "package": a zip archive of your site plus an installer.php file. Upload both to the new server, create an empty database, open the installer in your browser and follow the prompts. The installer also rewrites your URLs if the domain changes. The free version handles most standard migrations. Duplicator Pro adds scheduled backups, cloud storage destinations, drag-and-drop migration and server-to-server import. At the time of writing, Pro Basic is $79 a year at full price for 2 sites, and the vendor says first-year discounts renew at full price.

The plugin you pick matters far less than the order you do things in: copy, test, then switch DNS.

Method 2: Move WordPress manually (files, database, wp-config)

The manual method needs FTP or SFTP access, phpMyAdmin or SSH, and about an hour. It's the most reliable choice for huge sites, unusual server setups or when a plugin keeps timing out.

Step 1: Download your files

Connect to the old server with an SFTP client such as FileZilla and download the whole WordPress folder (usually public_html). The important parts are wp-content (themes, plugins, uploads) and wp-config.php. If you have SSH, it's much faster to zip everything on the server with tar first and download a single file.

Step 2: Export the database

In phpMyAdmin, select your WordPress database and use Export with the default "Quick" settings and SQL format. With SSH and WP-CLI, run wp db export backup.sql from the WordPress folder.

Step 3: Create a database on the new host

In the new host's control panel, create a new MySQL or MariaDB database and a user, give the user all privileges on that database, and write down the database name, username, password and host. The host is often localhost, but some providers use a separate database server address.

Step 4: Upload files and import the database

Upload your files to the new server's web root, then import the SQL file through phpMyAdmin's Import tab or with wp db import backup.sql. Very large SQL files may time out in phpMyAdmin; SSH import avoids that.

Step 5: Edit wp-config.php

Open wp-config.php on the new server and update DB_NAME, DB_USER, DB_PASSWORD and DB_HOST to match the database you just created. If the table prefix in the file (for example $table_prefix = 'wp_';) doesn't match the tables you imported, WordPress will try to run a fresh install, so double-check it.

Step 6: Run a safe search-replace (only if the domain changes)

If you're keeping the same domain, skip this step. If the domain or protocol changes, you need to update the old URL everywhere in the database. Don't open the SQL file in a text editor and do a find and replace: WordPress stores some settings as serialized PHP data, which records the length of each string, and changing a URL's length breaks those values. WordPress's own documentation recommends WP-CLI's search-replace command or a plugin such as Better Search Replace instead. With WP-CLI, preview first:

wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid --dry-run

Check the report, then run it again without --dry-run. Skipping the guid column follows WordPress's own advice: post GUIDs should never change, or feed readers may show old posts as new.

Test the new host before you switch DNS

This is the step that makes the move downtime-free. Your hosts file lets your computer, and only your computer, load the domain from the new server while everyone else still sees the old one.

  1. Get the new server's IP address from your hosting dashboard.
  2. Edit your hosts file as an administrator. On Windows it's C:\Windows\System32\drivers\etc\hosts; on macOS and Linux it's /etc/hosts.
  3. Add a line with the new IP and your domain, for example 203.0.113.10 example.com www.example.com, then save.
  4. Open the site in a private browser window. Click through the homepage, a few posts, the contact form, the login page and, for stores, a test checkout.
  5. Go to Settings > Permalinks and click Save once, which rebuilds rewrite rules.
  6. Remove the hosts file line when you're done, or you'll keep seeing the new server after DNS changes.

Switch DNS and keep downtime at zero

DNS records carry a TTL (time to live), measured in seconds, that tells resolvers how long to cache an answer. If your A record has a TTL of 86,400 (one day), some visitors could keep hitting the old server for a day after you change it. That's not downtime as long as the old site still works, but it's messy if content changes in between.

  1. A day or two before the move, lower the TTL on your A and AAAA records (and the www CNAME) to around 300 seconds.
  2. On moving day, do a final sync if anything changed since your copy (new orders, comments or posts), then update the A record to the new server's IP. If you're switching nameservers to the new host instead, recreate every record there first, including MX and TXT records for email.
  3. Watch the switch with a public DNS checker or nslookup example.com 8.8.8.8. Most visitors will move over within minutes when the TTL is low.
  4. Raise the TTL back to a normal value (an hour or more) once everything is stable.

Set up SSL on the new host

Most hosts issue a free Let's Encrypt certificate automatically, but they usually can't validate it until your domain points at their server. Plan for a few minutes of certificate setup right after the DNS change, or ask your host whether it supports DNS-based validation so the certificate is ready in advance. Once HTTPS works, confirm that WordPress Address and Site Address in Settings > General both start with https://. If you use Cloudflare, set its SSL mode to Full (strict) after the origin certificate is installed to avoid redirect loops.

Common WordPress migration errors and fixes

ErrorLikely causeFix
Error establishing a database connectionWrong details in wp-config.phpRecheck DB_NAME, DB_USER, DB_PASSWORD and DB_HOST, and confirm the user has privileges on the database
Pages return 404 but homepage worksMissing .htaccess or rewrite rulesSave permalinks again; on NGINX, ask the host to add WordPress rewrite rules
Redirects to the old domainsiteurl and home still use the old URLRun the search-replace, or define WP_HOME and WP_SITEURL in wp-config.php temporarily
White screen or critical errorPHP version mismatch or a plugin conflictMatch the old PHP version, then rename the plugins folder to find the culprit
"Not secure" or broken padlockMixed content (http images or scripts)Search-replace http:// with https:// for your domain and clear all caches
Import stuck or upload too largeHost upload or time limitsRaise PHP limits, use Migrate Guru, or switch to the manual method over SSH

After any fix, clear every cache layer: your caching plugin, the host's server cache and your CDN. Stale cache is behind a surprising number of "it still looks broken" reports.

After the move: clean up

Give it a week. Check Google Search Console for crawl errors, confirm scheduled backups are running on the new host, re-enable any security plugin features you paused, and make sure transactional emails (password resets, order receipts) still arrive. If you used Duplicator's installer, delete leftover installer files from the web root. Only then cancel the old hosting plan, after downloading one last backup from it.

Want someone else to handle it?

A migration is a one-time job, and if your site earns money, an hour of downtime or a broken checkout costs more than having it done for you. Teczpert's WordPress migration and server setup service covers the full move: copy, testing on the new server, DNS switch, SSL and post-launch checks. If you're moving more than WordPress, such as a custom app or a whole server, see our website migration and server setup services.

FAQ

How long does it take to move a WordPress site to a new host?

For a typical small business site under 1 GB, the copy usually takes well under an hour with a plugin (Migrate Guru estimates under 30 minutes for a 1 GB site), plus time for testing. DNS changes usually spread within minutes if you lowered the TTL beforehand, though some resolvers can take longer. Plan a half day so you're not rushing.

Will moving hosts hurt my SEO?

Not if the domain and URLs stay the same and the site stays online. Search engines care about content, URLs and availability, not which company hosts the server. Changing domains is different and needs 301 redirects from every old URL.

Can I migrate WordPress for free?

Yes. Migrate Guru, the free version of All-in-One WP Migration (within your host's upload limit), Duplicator's free version and the manual method all cost nothing. Many hosts also offer free migrations for new customers, so ask before you start.

Do I need to move my email too?

Only if your email is hosted on the old web server. If you use Google Workspace or Microsoft 365, keep the existing MX records exactly as they are when you change DNS, and your email won't be affected.

What happens to my SSL certificate when I change hosts?

Certificates are usually tied to the server, so you'll get a new one at the new host. Free Let's Encrypt certificates are issued automatically by most hosts once the domain points to them. If you bought a paid certificate, you can usually reissue it on the new server.

Should I use a plugin or move WordPress manually?

Use a plugin for most sites under a few gigabytes. Go manual for very large sites, servers without plugin-friendly limits, or when you want full control over every file and table.

Still choosing where to move? Compare options in our managed WordPress hosting and web hosting guides, or browse our VPS hosting coverage if you've outgrown shared plans.

Sources: WordPress Developer Resources: Moving WordPress, WP-CLI search-replace, Migrate Guru on WordPress.org, All-in-One WP Migration on WordPress.org, Duplicator pricing, Pantheon: WordPress migration plugins

Teczpert Editorial

News, reviews and explainers from the Teczpert team: the people who also build, fix and run the software we write about.