Switching web hosts can feel risky. One wrong move and your site goes blank, your contact form stops working or your email vanishes. The good news is that you can migrate a WordPress site safely if you do the slow, boring steps first and make the actual switch last.
This guide shows you how to migrate a WordPress site to a new host, step by step. You’ll learn what to check on the new host, how to test before you flip the switch, and what to do about DNS, email and search engines. If you’re still choosing a host, start with our guide to reading a hosting plan beyond the headline price.
Migrate a WordPress site: key facts (as of Nov. 27, 2026)
Source: WordPress.org requirements.
Check the New Host Before You Migrate a WordPress Site
Before you migrate a WordPress site, make sure the new host can run WordPress well. WordPress.org says you don’t need to reinstall when you move servers, but the new server should meet a modern baseline.
| Requirement | What WordPress recommends |
|---|---|
| PHP | Version 8.3 or greater |
| Database | MySQL 8.0 or greater, or a current MariaDB version |
| HTTPS | Required for every install |
| Web server | Apache or Nginx with mod_rewrite (for Apache) |
Source: WordPress.org. Older PHP and MySQL versions still run, but they’ve reached end of life and may expose your site to security risks.
Also ask the new host if it offers free migration help. Some do, and it can save you hours. If you want the details of what’s included, get it in writing.
Two Ways to Migrate a WordPress Site: Manual or Plugin
You can migrate a WordPress site by moving the files and database yourself, or by using a migration plugin. Neither is “right.” It depends on your comfort level and your site’s size.
| Method | Best for | Watch out for |
|---|---|---|
| Manual (files and database) | People who want full control and don’t mind a little technical work | Editing wp-config.php and importing the database by hand takes care |
| Migration plugin | Most small sites. IONOS lists All-in-One WP Migration, Duplicator, UpdraftPlus and others | File size limits on free versions. Some plugins are better suited to developers |
| Host’s migration service | Busy owners who want someone else to do it | Ask what’s covered, how long it takes and whether it includes email |
7 Steps to Migrate a WordPress Site Without Downtime
These steps to migrate a WordPress site follow the WordPress.org moving guide and Google’s advice for changing hosts. The order matters, so don’t skip ahead.

Back up your files and database
To migrate a WordPress site safely, start with a backup. WordPress.org says to back up your WordPress directory, images, plugins and other files, plus the database. Save a copy somewhere safe and off the server.
Then test that the backup can actually be restored. Our guide on testing whether your website backup can be restored shows how. It also helps to plan website updates around a recovery point so nobody edits the site mid-move.
Record your DNS and lower the TTL
Write down every DNS record before you touch anything: A, CNAME, MX, TXT and others. Our guide on keeping a record of DNS before you change it has a simple method.
Next, lower the TTL (time to live) on the records you’ll change. TTL tells resolvers how long they may cache an answer. Google suggests lowering it to a few hours at least a week ahead, and many practitioners drop it to 300 seconds 24 to 48 hours ahead. Whatever you choose, make the change early and confirm it’s live before you switch.
Copy your site to the new host
If you migrate a WordPress site by hand, the steps are: create a new database on the new server, edit
wp-config.phpwith the new database name, user, password and host, upload your files, then import the database. The WordPress.org migration guide covers the details.Before you copy, trim the site. A short plugin inventory helps you leave behind plugins you don’t use.
Test the new site before you change DNS
Don’t point your domain at the new host yet. Preview the site first, either with a temporary URL from your new host or by editing your computer’s hosts file so your domain points to the new server’s IP address on your machine only.
Google also advises testing in an environment you control, checking that Googlebot can reach the new server with the URL Inspection tool in Search Console, and removing any temporary blocks. If you used
noindextags or arobots.txtblock while building the copy, take them off before launch. Also confirm that your SSL certificate is ready.Switch DNS and keep the old host running
Now update the DNS records that point your website to the new host. Leave your email (MX) records alone unless you’re moving email too. Don’t cancel the old host yet. Google suggests watching server logs on both sides: traffic should fall on the old server as it rises on the new one.
Check everything
Click through the site on desktop and mobile. Check permalinks, images, logins, search and SSL. Send a test message through your forms with this guide on checking a contact form from both ends. If you verified your site in Search Console with an HTML file, make sure that file moved too. A website launch checklist keeps small teams on track.
Clean up
Once everything works, raise the TTL back to a normal value. Keep the old host for a safe window, then download one last backup before you cancel. As an editorial opinion, a week or two is a reasonable cushion. Add the new host’s renewal date to a domain and hosting renewal calendar so nothing lapses.
When you migrate a WordPress site, pick a quiet time to switch DNS, such as a low-traffic day. Freeze content changes during the move so you don’t lose new posts or orders. These are our own suggestions, not rules from the sources above.
Don’t Forget Email When You Migrate a WordPress Site
When you migrate a WordPress site, your email doesn’t move automatically. Your website and your email are two different things, even if they share a domain. If your mailboxes live with your old host and you cancel it, email can stop working. Moving the website alone usually doesn’t change your MX records, but changing nameservers can.

Before you switch, decide where email will live. Our guide on planning email addresses for a small website can help. Then send and receive a test message after the move.
If you cancel before DNS has fully switched, or before you’ve confirmed email works, you can lose access to files or mailboxes you still need. Keep the old account until you’ve checked the site, forms and email.
Common Mistakes When You Migrate a WordPress Site
Most problems when you migrate a WordPress site come from the same few mistakes. Here are the ones to avoid.
- Skipping the backup test. A backup you’ve never restored is only a guess.
- Not lowering the TTL early. If your TTL was a day long, some visitors may keep seeing the old server for up to a day.
- Leaving search engines blocked. A leftover
noindextag orrobots.txtblock from a test copy can hide your site from Google. - Leaving the RELOCATE line in
wp-config.php. WordPress.org warns that it’s insecure and should be removed once you’re done. - Editing the site mid-move. New posts or orders can land on the old server and get lost.
- Forgetting email. It’s the most common surprise after a hosting change.
When to Get Help
If you need to migrate a WordPress site that runs a store, a membership program, a multisite network or lots of custom code, consider hiring a developer or paying for your host’s migration service. A mistake costs more on those sites. The steps above still apply, but there’s more to test.
Bottom Line
To migrate a WordPress site safely, back it up, record your DNS, lower the TTL, copy the site, test it, switch, then check everything. Keep your old host running until you’re sure. Do it that way, and most of the stress goes away.
Information is current as of Nov. 27, 2026, based on WordPress.org, Google Search Central and hosting industry guides. Steps vary by host and setup. Always back up your site before you make changes. This is general information, not professional advice.




