Compare hostsCompare

Guide

How to move a WordPress site to a new host

Moving WordPress to a new host comes down to three jobs: copy the site, test the copy, then point your domain at it without upsetting your email. Here is how to do each one, whether your new host's team or plugin does the copying or you do it yourself.

Independent guide to managed WordPress hosting. Plans, prices and terms are on each host's own website.

In short

To move a WordPress site to a new host, copy its files and database to the new server, test the copy, then point the domain's DNS at the new host. Cloudways, Krystal and WP Engine all describe ways to do the copy for you. Your part is testing and the DNS switch, carrying email (MX) and verification records across.

See Cloudways' managed hosting plans

Cloudways lists its cloud providers, server sizes and locations, including London, on its own site.

Visit Cloudways (opens in a new tab)

Before you start: a checklist

Most migration problems are not caused by the copy itself. They come from a missing login, a DNS record nobody knew about, or an order placed on the old site after the copy was taken. Ten minutes with this checklist can spare you hours later.

Before you start: a checklist
What to gatherWhy you need it
Logins for your current hostControl panel, SFTP or SSH details, so the files and database can be copied
Your WordPress admin loginTo test the copied site and switch off anything that should not run twice
Where your DNS is managed, and the loginOften the domain registrar, sometimes the old host or a separate DNS service. This is where you make the final switch
A copy of every DNS recordMX, TXT, CNAME and A records for email, verification and other services, so nothing is lost if DNS moves
Who provides your emailUsually Microsoft 365 or Google Workspace. Email normally stays where it is; its records just need protecting
A fresh backupFiles and database, kept somewhere other than the old host, in case you need to go back
Anything unusualMultisite, custom server rules, a reverse proxy, scheduled tasks, very large media libraries or a shop
A quiet time to switchYour analytics show when traffic and orders are lowest

Two small jobs pay off on the day. First, lower the DNS TTL (time to live) on your website records a day or so before the switch, so the change spreads quickly; a few minutes is a common setting for the move, raised back to its usual value once the new site is live. Second, agree a content freeze: anything published or changed on the old site after the copy starts will not appear on the new one.

If two-factor authentication protects your current hosting account, check how your new host's team will log in: it may need pausing until the copy is finished, or the team may be able to sign in as a separate user that you remove afterwards.

See Cloudways' managed hosting plans

Cloudways lists its cloud providers, server sizes and locations, including London, on its own site.

Visit Cloudways (opens in a new tab)

Option 1: use your new host's migration service or plugin

The simplest way to move WordPress to a new host is to let the new host do the copying. Hosts offer this in two ways, and some offer both:

  • A team-run migration: you give the host access to your current hosting, or a backup file, and its staff copy the site, check it and tell you when it is ready to test
  • A migration plugin: you install the host's plugin on your current site, enter the details it asks for, and it transfers the files and database for you

A team-run move suits business sites with unusual set-ups or no in-house developer; a plugin suits straightforward sites and people who like to control the timing. Either way, the copy is made while your original site stays live, and nothing changes for visitors until you update DNS.

Check what is left for you afterwards. Typically the host copies the website, and the DNS and email steps stay with you: WP Engine's go-live checklist, for example, has you update the records at your own DNS host, with an option to have them configured automatically.

Migration help at each host

Each host describes its migration help in its own words. This is what their own pages say, listed A to Z:

Migration help at each host
CloudwaysKrystalWP Engine
Moved by the host's teamCloudways says its engineers migrate your first website from any web host; on its Autonomous plans, migrations are unlimited and handled by the Cloudways teamKrystal says its team migrates up to three WordPress sites on its managed WordPress plans, with further sites charged per siteWP Engine lists managed site migrations on its Business plans, and hands-on migration and onboarding on Enterprise
Plugin or do-it-yourself routeThe Cloudways WordPress Migrator plugin: install it on your current host and enter the details it asks forKrystal says its team handles the move, so you do not need a migration pluginThe WP Engine Automated Migration plugin, plus a manual migration checklist in the User Portal
Timing, as the host states itSee Cloudways' siteKrystal says it moves your site before your 30-day trial startsSmaller sites may transfer in under an hour; large or busy sites can take several hours
Testing before the DNS switchSee Cloudways' siteYou can preview the migrated site before updating DNSWP Engine says you can test migrated sites before DNS updates

Plans and the migration help attached to them change, so confirm the current details on each host's own page: Cloudways (opens in a new tab), Krystal (opens in a new tab) and WP Engine (opens in a new tab).

A few details are worth knowing. Krystal says it will flag anything that could complicate the move, such as an older PHP version, before it starts. WP Engine's managed migration service includes validating the site on staging and guiding the DNS change.

Not sure which host to choose?

See the three hosts side by side on the features each one lists.

Compare hosts

Option 2: migrate or transfer a WordPress site to a new host yourself

You can also transfer a WordPress site to another host yourself. It suits developers, staging copies and simple sites, and some hosts publish their own guides: WP Engine, for example, has a manual migration checklist in its User Portal. The outline is the same on any host:

  1. Back up the old site. Download the files (at least the wp-content folder and wp-config.php) by SFTP, and export the database as an SQL file.
  2. Create the new site. Set up an empty site and database on the new host, and note the database name, user, password and host.
  3. Upload the files to the new site, keeping the same folder structure. Some hosts let you upload a zipped wp-content folder through their dashboard instead.
  4. Import the database into the new database.
  5. Update wp-config.php with the new database name, user, password and host, and check the table prefix matches the imported tables.
  6. Fix the address if it has changed. If the domain or URL is different, use a search-and-replace tool that understands serialised data, such as WP-CLI's search-replace command, rather than editing the database by hand.
  7. Remove what the new host replaces. Managed hosts often run caching at server level and restrict some plugins. WP Engine restricts some caching and backup plugins, and Krystal advises against adding caching plugins on its managed platform.
  8. Test on a temporary address or by pointing your own computer at the new server, then update DNS when you are happy.

The difference between the two options is mostly time and risk:

Option 2: migrate or transfer a WordPress site to a new host yourself
The host moves itDoing it yourself
Who copies the files and databaseThe host's team or pluginYou or your developer
Tools neededAccess to your current hosting account, or a backup fileSFTP, database access and, ideally, WP-CLI
Setting up the copy on the new serverThe hostYou, including database settings and any address changes
Testing before go-liveOn the host's temporary address or previewOn a temporary address or local hosts file
DNS and email recordsYou, guided by the host's documentationYou
EffortMostly testing and the DNS switchThe whole move

For most business sites, letting the new host's team or plugin do the copy, and spending your own time on testing and DNS, is the efficient split.

DNS, email and domain records: the part people forget

A website move changes where your domain's website records point. Your email usually lives somewhere else entirely, but its records sit in the same DNS zone, which is why a careless switch can stop email arriving.

It helps to separate four things that are often bundled together:

  • Domain registrar: where the domain name is registered and renewed
  • DNS host: where the records for the domain are kept (often the registrar, sometimes the old web host)
  • Web host: where the WordPress site runs, which is what you are changing
  • Email provider: often Microsoft 365 or Google Workspace, which normally does not change at all

Managed WordPress hosts often keep email separate from hosting. Krystal, for example, says its managed WordPress plans do not include mailboxes as standard, with email available as an add-on. So in most moves your email stays exactly where it is. There are then two ways to point the domain at the new host:

DNS, email and domain records: the part people forget
ApproachWhat changesWhat to watch
Change the website records onlyThe A record for the domain (and usually the www record) at your current DNS hostEmail records are untouched, so this is the lower-risk route when your DNS is already somewhere you are happy with
Move the whole DNS zoneThe nameservers, for example to the new host's DNS serviceEvery record must be recreated at the new DNS host first, or email and other services stop working when the nameservers change

If the whole zone moves, these are the records that most often go missing:

DNS, email and domain records: the part people forget
RecordWhat it doesIf it is missed
MXTells the world where to deliver your emailIncoming email bounces or goes astray
SPF (TXT)Lists the services allowed to send email as your domainYour messages are more likely to land in spam
DKIM (CNAME or TXT)Lets receivers check your email was signed by your domainEmail authentication fails
DMARC (TXT)Tells receivers what to do with mail that fails SPF or DKIMYou lose protection against spoofing of your domain
Autodiscover and other email CNAMEsHelp Outlook and phones find your mailbox settingsStaff see sign-in and set-up prompts
Verification TXT recordsProve you own the domain to Microsoft 365, Google and other servicesServices can lose their link to your domain
Records for other servicesHelpdesk, booking, email marketing or subdomains pointing elsewhereThose services stop resolving

Your website also sends its own email: enquiry form notifications, password resets and order confirmations. Check how the new host sends this transactional email, and make sure your domain's SPF, DKIM and DMARC records cover whichever service sends it, so these messages do not land in spam. Some hosts make the DNS step easier: WP Engine says its User Portal can configure DNS records at your DNS host automatically through a service called Entri.

How long the change takes to spread depends on your TTL settings: WP Engine says it can take up to 24 to 72 hours globally, with your site reachable throughout. Then check your website, email and form notifications.

Shops and membership sites: maintenance mode

A brochure site barely changes during a migration, so the copy and the live site stay the same. A shop, membership site or community site changes all the time: every order, sign-up and profile update is new data. If those changes land on the old site after the copy is taken, they are left behind.

The usual answer is maintenance mode. While it is on, visitors see a notice and cannot place orders, register, update profiles or publish content, so nothing new lands on the old site after the copy is taken. The host copies the site, you review the copy, then you update DNS, and the old site stays in maintenance mode until the change has spread.

How long the window lasts depends mostly on the size of the site: WP Engine, for example, says smaller sites may transfer in under an hour, while large or busy sites can take several hours. Then allow time for your review and for DNS. Whichever host you move to, these steps keep the window short:

  • Schedule the move for your quietest trading hours, and for a time when you can start testing as soon as it completes
  • Lower the DNS TTL a day before
  • Tell regular customers or members in advance if the site will be unavailable
  • Pause email campaigns and promotions that would send people to the site during the window
  • Have a test order or test sign-up ready to run on the new copy
  • After go-live, check payment gateway notifications and any services that recognise your server's IP address

Also check that the new host keeps basket, account and checkout pages out of its page cache, so shoppers see their own baskets once you are live. Our WooCommerce hosting guide covers running a shop in more detail, and WordPress multisite hosting covers moving a network.

After the move: testing and switching over

Test the new copy before DNS changes, then test again once it is live. A short, repeatable checklist works well:

  • Key pages: home page, main service or product pages, blog posts and anything linked from your adverts
  • Forms: send a test from every enquiry and quote form and check the notification arrives
  • Shop and logins: place a test order, log in as a customer or member, and reset a password
  • Media and links: images, downloads and internal links all point to the right domain
  • Redirects and SSL: old URLs still redirect, and the padlock shows on every page
  • Tracking: analytics, tag manager and search console verification still work
  • Scheduled jobs: scheduled posts, plugin tasks, feeds and integrations run as expected
  • Speed: test a few pages with the same tool you used before the move

Once the site is live, clear the new host's caches if anything looks out of date, and keep an eye on its monitoring tools for the first few weeks.

Keep the old hosting account running until DNS has fully changed over, email is flowing and you have a final backup of the old site. Cancel the old hosting only once you have confirmed the site loads correctly from the new host, wherever you move.

Next step: choose where to move

If you have not yet chosen a new host, the migration help on offer is a fair tie-breaker, alongside data centre location, backups and support:

Each host page on this site covers one host in more depth: Cloudways, Krystal and WP Engine. Plans are bought directly from each host, on its own terms, and each host lists its current migration help on its own site.

Frequently asked questions

How do I move my WordPress site to a new host?

Copy the site's files and database to the new host, test the copy on a temporary address, then update your DNS so the domain points to the new server. Most managed hosts will do the copy for you, with their own team, a migration plugin or both. Before the switch, take a copy of every DNS record so email and other services keep working.

Which hosts move sites for you?

All three hosts on this site describe migration help. Cloudways says its engineers migrate your first website, and Autonomous plans include unlimited migrations by its team. Krystal says its team moves up to three sites on managed plans. WP Engine lists managed migrations on Business plans and an Automated Migration plugin.

How long does a WordPress migration take?

It depends on the site's size and the host. WP Engine, for example, says smaller sites may transfer in under an hour and large sites can take several hours. Allow extra time for testing and for DNS changes to spread.

How do I migrate a WordPress site to a new host myself?

Take a full backup, then copy the site's files and database to the new host, either with a migration plugin or by hand through SFTP and a database export and import. Update the site address if it is changing, test the copy on a temporary address, and only then update your DNS, leaving your email records as they are.

Can I transfer a WordPress site to another host without downtime?

Usually, yes. The copy is made while your original site stays live, and visitors move across only when you update DNS. Shops, membership and community sites are the exception: these usually go into maintenance mode while the site is copied, so no orders or sign-ups are lost.

What happens to my email when I change WordPress host?

Your email normally stays with its current provider, such as Microsoft 365 or Google Workspace; Krystal's managed plans, for example, do not include mailboxes as standard. What matters is your DNS: if you change only the website records, email is untouched, and if the whole DNS zone moves, the MX, SPF, DKIM, DMARC and verification records must be recreated first.

Can a host move lots of sites at once?

Some hosts describe this. Cloudways says migrations to its Autonomous plans are unlimited. Krystal's managed plans cover up to three sites, with more charged per site. Check each host's own migration page for current limits.

See Krystal's WordPress hosting plans

Krystal lists its UK hosting plans on its own site.

Visit Krystal (opens in a new tab)

Next step

See WP Engine's managed WordPress plans

WP Engine lists its plans and data centre options on its own UK site.

Independent guide to managed WordPress hosting. Plans, prices and terms are on each host's own website.

Not sure which host?Compare the three hosts
Compare hosts