UK managed hosting · £1 a day + VAT · old websites welcome01623 650333 · Client login
Order now

How to move a WordPress site to a new host, step by step

To move a WordPress site to a new host, copy the files and database, test on the new server while the old one stays live, lower your DNS TTL a day ahead, then switch and keep the old hosting for a fortnight. dijihost does the move for you, included in Complete Hosting at £1 a day + VAT.

Updated 2026-10-18 · by the dijihost team, Mansfield, UK

Key facts

  • During a move there are two working copies of the site, so nothing has to go offline.
  • Lower the DNS TTL to about five minutes a day or two before switching.
  • Changing nameservers moves the whole DNS zone, mail records included; changing an A record does not.
  • Test on the new server with a hosts file entry rather than a temporary URL.
  • Never run a plain find-and-replace on a WordPress SQL file: use WP-CLI search-replace.
  • Keep the old hosting running for a couple of weeks after the switch.
  • dijihost includes migration in Complete Hosting at £1 a day + VAT.

Why nothing has to go offline

People expect this to be the scary bit. It usually is not. To move a WordPress site to a new host you copy the site across, get it working on the new server while the old one carries on serving the public, shorten your DNS time-to-live a day beforehand, point the domain at the new address, and watch both machines for a fortnight.

For a while there are two working websites. The old server keeps answering until the domain stops pointing at it, and the new one is ready and tested before that happens. Outages come from doing things in the wrong order: cancelling the old account on the day, or pointing the domain at a server before the site has been rebuilt on it.

TTL and DNS in plain English

Every DNS record carries a time-to-live: how many seconds the rest of the internet may remember the answer before asking again. With a four-hour TTL, providers can keep sending people to the old server for four hours after you change it. So a day or two before the move, drop the TTL on the records you are changing to five minutes and let the old value expire. Put it back up a week after you have settled.

Changing an A record moves the website and leaves everything else alone. Changing nameservers hands the whole zone to a different provider, mail records included, which is how businesses lose email during what was meant to be a website move. If mail is staying put, leave the nameservers alone, or copy every MX, SPF, DKIM and verification record across first, character for character. If the domain is behind Cloudflare with the proxy on, the change takes effect almost at once when you save it.

Our sister site has the detail on pointing a domain at a new host and how Cloudflare DNS works.

The method, step by step

  1. Take stock before copying anything: PHP version, plugin list, how the site sends mail, cron jobs, redirect rules in .htaccess, the SSL certificate and the size of the uploads folder.
  2. Copy the files and export the database. On a large site the files take far longer, so do them first and separately.
  3. Build and test on the new server under the real domain, using a hosts file entry on your own computer. Temporary preview URLs are a poor substitute, because WordPress notices the address has changed and behaves differently.
  4. Sort the SSL certificate, either issued in advance using DNS validation or ready to issue the instant the domain lands.
  5. Lower the TTL a day or two ahead.
  6. Take a fresh copy of the database and new uploads minutes before the switch. Tell whoever writes content to stop first, or anything published after that copy vanishes. This is the step people skip.
  7. Change the record, then look at the site on your phone, off the office wifi.
  8. Leave the old hosting running for a couple of weeks. One more month is the cheapest insurance you will ever buy.

The bits that catch people out

Cron running on both servers

For a day or so both copies are alive and both may run scheduled tasks against their own database: two servers sending reminder emails, two publishing scheduled posts. Turn the scheduler off on the old one as soon as the domain has moved.

URLs buried in the database

If the domain is changing, the old address is scattered through page builder content and widget settings. A blunt find-and-replace on the SQL file corrupts anything PHP stored as serialised data, and the damage shows up weeks later as a section that has stopped rendering. Use WP-CLI's search-replace, or a migration plugin that understands the format.

Mailboxes are not files

Copying the website does nothing for email. Mailboxes are synced separately with folders intact, and phones need reconfiguring. Treat it as its own job; our sister site covers email hosting.

Things the old host did quietly

Server-level redirects, IP blocks, a firewall rule, a cron job set up in the control panel rather than in WordPress. None of it is in your file copy, and it is usually where the gap is hiding when something works on the old site and not the new one.

Busy sites, and what to check afterwards

A brochure site can move with nobody noticing, because almost nothing is written to the database. A busy shop, membership site or booking system is different: every minute between your final database copy and the switch is a minute an order could land on the server you are leaving. Pick the quietest hour of the week, keep the gap to minutes, and check the old server afterwards for anything that arrived late. Shops also have payment gateways that may need re-authorising; see our WooCommerce hosting page.

  • Submit your own contact form and confirm the message arrives in an inbox, not spam.
  • Read the server error log rather than the homepage. Page 40 of the blog is where the broken thing lives.
  • Make sure the test copy was not left indexable and no noindex setting travelled to the live site. Those cause most ranking wobbles blamed on migrations, as our piece on whether hosting affects SEO explains.
  • Log in as an ordinary customer, not an administrator. Admins see a different site.
  • Time a few pages before you cancel the old account. If nothing improved, the weight is in the pages; see why is my WordPress site slow.

Or let us do it

Migration is free for hosting customers (moving more than 5 email accounts may be charged), and it is our job rather than a form you fill in. Sites arrive one at a time, and sometimes as a whole agency client book at once. Your current hosting is left running while we work, so there is a way back at every stage. When we move a shop, we plan the cut-over so it stays open and no orders are lost.

You do not need to know what a TTL is: send us the domain, tell us who has it now, and we take it from there. Managed WordPress hosting with dijihost Complete Hosting is £1 a day + VAT, including daily backups kept for 14 days, free SSL and Cloudflare DNS. Order online or call 01623 650333.

Frequently asked questions

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

For an ordinary business site, copying and testing is usually an afternoon of work and the switch itself takes minutes. What stretches the job out is everything around it: waiting for a long DNS time-to-live to expire, chasing login details out of an old host, and finding a quiet hour to make the change.

Will my website go offline while it moves to a new host?

It should not. Both servers hold a working copy during the changeover, so visitors reach the old one or the new one rather than nothing. Downtime creeps in when the old account is cancelled too early, or when the domain is pointed at a server before the site on it has been properly tested.

Do I need to tell my old host before I move?

Not in order to move. The domain is yours and you can point it wherever you like. What you need is access for long enough to take a complete copy, so keep paying the old host until the new server has been live and behaving for a fortnight. Cancel afterwards, never before.

Will changing hosts affect my Google rankings?

Not if it is done properly. Keep the same addresses, redirects and robots file, and Google largely sees a website that got quicker. The two things that really cause trouble are leaving a test copy of the site open to search engines, and carrying a noindex setting from a test copy onto the live server.

Can dijihost move my WordPress site for me?

Yes. dijihost copies your WordPress site, tests it on our UK servers under the real domain, and switches over when it is ready, leaving your old hosting running as a way back. Migration is included in Complete Hosting at £1 a day + VAT; moving more than 5 email accounts may be charged.

Related

Set it up and forget about it

Managed hosting, Plesk, Cloudflare DNS, daily backups and your domain for £1 a day + VAT. We move your site for you.

Call usOrder £1/day