Searching for how to move my WordPress site to a new host? The short answer: copy the files and the database, and set them up on the new host. Test the site there before anyone sees it, and only then point your domain at it. The files are the easy part. What a move really puts at risk is your email and your Google rankings.
We design and build WordPress websites ourselves, as one team based in Leicestershire, and we judge a website on the enquiries it brings in. If your move is really about a slow or tired site, tell us about your project.
This guide covers the checklist to run before you start, three ways to move WordPress, how to switch DNS without losing email, and how to protect your rankings.
How to Move Your WordPress Site to a New Host: The Short Answer
Someone on Reddit asked how to move WordPress between hosting companies, and the top answer was "use whatever method works for you". That's true for the files. It isn't true for the order you do things in.
| Step | What you do | What goes wrong if you skip it |
|---|---|---|
| Back up | Copy the files and the database | Nothing to fall back on |
| List DNS records | Note every record, including MX | Email stops arriving |
| Lower the TTL | Shorten DNS caching a day or two ahead | The switch drags on for longer |
| Set up the new host | Upload files, import the database | The site won't load |
| Test before the switch | Check pages, forms and logins on the new host | Customers find the problems first |
| Point the domain | Change the A record or nameservers | Visitors still reach the old host |
| Watch for a week | Search Console, forms, email | Small faults go unnoticed |
A move goes more smoothly when the site is lean. Our WordPress development builds sites with fewer plugins and no page builder, so there's less to carry across and less to break on a new server.
Before You Move: The Checklist
Most moves that go wrong were lost before the first file was copied.
Take a Full Backup
You need both the files and the database. Backing up one doesn't back up the other. Our guide to back up your WordPress site explains what to include and how to check the backup works.
Check the New Host Can Run Your Site
Compare the PHP version and the MySQL or MariaDB version on both hosts. A site built for an older PHP version can show errors on a newer one, so find out before you move, not after.
Write Down Every DNS Record
Log in to wherever your DNS is managed and record everything: the A record, any CNAME records, the MX records and the TXT records used for SPF and DKIM. Those last ones decide whether your emails arrive or land in spam.
Lower the TTL a Day or Two Ahead
TTL (time to live) is how long internet providers cache your DNS settings. Google's own guide to changing hosts suggests lowering it to a short value, such as a few hours, before a move so the new settings spread faster.
Three Ways to Move WordPress
Your New Host's Free Migration
Many hosts offer to move your site for you. It's often fine for the files and database. Ask exactly what it covers, because email, DNS records and redirects usually aren't included.
A Migration Plugin
A migration plugin packages the site on the old host and unpacks it on the new one. It suits most small and medium business sites. Very large sites or busy online shops can hit upload or time limits, so test the result carefully.
Moving It by Hand
To move it manually, download the files over SFTP and export the database in phpMyAdmin. On the new host, create a database, import the export, upload the files and update `wp-config.php` with the new database details. If the domain and URLs stay the same, WordPress's own guide says that's usually all a move to a new server needs.
Test on the New Host Before You Switch the Domain
Your domain should still point at the old host while you test. Use the new host's temporary URL, or edit your computer's hosts file so only you see the new copy.
What to Check
- Every main page and menu.
- Images and downloads.
- Logins for every staff account.
- Your SSL certificate.
- The checkout, if you sell online.
Send a Real Test Enquiry
Fill in every form and make sure the email arrives. A site that looks perfect but drops enquiries is the most expensive kind of broken.
Switching DNS Without Breaking Your Email
This is the part the hosts' own guides skip, and it's where most business moves go wrong.
Why Email Is at Risk
Your website and your email are separate services that share a domain. When someone emails you, their server looks up your domain's MX records to find where to deliver it. If those records disappear, the email has nowhere to go.
A Record or Nameservers?
If you only change the A record, your other records stay where they are and email carries on as before. If you move your nameservers to the new host, its DNS starts with only what you add to it. Recreate every record from your list, MX, SPF and DKIM included, before you make the switch.
If Your Old Host Also Ran Your Email
Then your mailboxes live there too. Move them, or set up email elsewhere, before you cancel anything.
How Long the Switch Takes
Most UK hosts say DNS changes can take up to 48 hours to spread fully. Keep the site running on the old host during that time, so whichever server a visitor reaches, they get a working site.
Protecting Your Google Rankings
Same Domain, Same URLs
If nothing changes except the server, Google treats it as a hosting change. Google says it's normal to see a short drop in how often it crawls your site straight after the move, followed by a steady rise over the next few days.
If the Domain Changes Too
This is a bigger job. Never run a plain find-and-replace on the database to change the old address. WordPress warns that some themes and widgets store data with the length of the URL, and a raw replace breaks it, so use WP-CLI's search-replace or a search-replace plugin instead. Leave the GUID column in the posts table alone.
Then set up 301 redirects from every old URL straight to its new one. Google says permanent redirects don't cause a loss in PageRank. Submit a Change of Address in Search Console and keep the redirects for at least 180 days. Keep paying for the old domain for at least a year, too, so nobody else can buy it.
If rankings have already dropped after a move, our SEO team can help find out why.
After the Move: The First Week
Check Search Console for new 404 errors and crawl problems. Test your forms again, look at any scheduled emails and clear the cache.
Only cancel the old hosting once DNS has settled, email is arriving and you've downloaded a final backup from the old server.
Moving Host? It's a Good Time to Fix the Site Too
If you're moving because the site is slow or hard to manage, the host is rarely the whole problem. Heavy plugins and page builders travel with you.
Our WordPress web design and development rebuilds sites properly. We take a tested backup first and build the new site on its new host. Before the switch we copy and check your email records, and we keep every URL or 301 it to its new page. Websites run from £2,000 to £15,000 + VAT, with a fixed price agreed in writing before we start.
Tell Us Why You're Moving
Whether the site is slow, hard to update or simply on the wrong host, we'll tell you whether it needs a move or a rebuild. Have your WordPress site rebuilt properly, or tell us about your site.