You can move a website to new hosting without downtime by keeping the old hosting running until the new one is fully ready: back up the site, copy the files and database, test the site on the new server via a temporary address, and only then switch DNS. Beforehand, you need to lower the TTL of your DNS records, sort out the SSL certificate and not forget about email. Done properly, visitors will not notice the change.

This is how I handle WordPress migrations. The most common mistakes are listed at the end. If you would rather not deal with the move yourself, I can do it for you through my website migration service.

When is it worth moving your website?

  • the site is slow and the hosting is to blame,
  • the hosting does not support the current PHP version,
  • there are no automatic backups or decent support,
  • the hosting price went up sharply after the first year,
  • you want your website, email and domain with one provider, or with different ones.

I explain how to choose new hosting in the article how to choose web hosting for WordPress.

Step 1: Inventory – what is being moved

Before you start, write down:

  • Where the domain is registered and who has access to DNS management.
  • Where email runs – on the old hosting, in Microsoft 365, in Google Workspace? This is the most common cause of problems.
  • All DNS records – A, CNAME, MX, TXT (SPF, DKIM, DMARC, Google and Meta verifications). Take screenshots or export the whole zone.
  • Subdomains, cron jobs and integrations with external services (invoicing, stock, payment gateway).
  • The PHP and database versions on the old server.

If it is not clear how domain, DNS, hosting and email fit together, read the article what DNS is and how it relates to your domain, hosting and email first.

Step 2: Lower the TTL of your DNS records

TTL (time to live) determines how long servers on the internet remember a DNS record. If a record has a TTL of, say, 24 hours, some visitors may keep reaching the old server for a day after the change. So at least a day before the planned move, lower the TTL of the A and CNAME records for the website to a few minutes (for example 300 seconds). Once the migration is complete, you can set it back.

Step 3: Back up the website

Before making any changes, take a full backup of the files and database and store it off the server. If something goes wrong, you have something to go back to. I write about a long-term approach to backups in the article how often to back up your website.

Step 4: Copy the files and database

  1. On the new hosting, create the website (domain) and a database with a user.
  2. Set the same or a newer PHP version that the site supports.
  3. Copy all the website files (for WordPress, the whole folder including wp-content).
  4. Export the database from the old server and import it on the new one.
  5. Update the database credentials in the configuration (for WordPress, the wp-config.php file).

With WordPress, you can also use a migration plugin that packs the site into a single bundle. For large websites and online shops, though, a manual transfer via SSH or the hosting tools is more reliable.

Step 5: Test the website on the new server

Without this step you are moving blind. You can test the site on the new server before changing DNS:

  • via a temporary address provided by the hosting,
  • or by editing the hosts file on your computer – your computer then goes to the new server while the rest of the world still goes to the old one.

Click through the main pages, forms, admin login, the basket and checkout in an online shop, search and images.

Step 6: Freeze changes on an online shop

If orders come in or comments are added during the migration, that data would be left on the old server and lost. For an online shop, plan the move for the quietest time, switch on maintenance mode briefly, do a final database sync and switch DNS straight away.

Step 7: Switch DNS and sort out SSL

  1. Change the A record (and AAAA and the CNAME for www if used) to the IP address of the new server.
  2. Do not change MX and other email records unless email is moving too.
  3. Issue an SSL certificate on the new hosting. Free Let's Encrypt certificates are only issued once the domain points to the new server – allow for a short moment while the certificate is generated, or use DNS validation.
  4. Check that the site runs over HTTPS and that the redirect from HTTP works.

Step 8: Email

If email ran on the old hosting and you are moving it too, you need to:

  • create the same mailboxes on the new hosting,
  • transfer old messages (via IMAP synchronisation),
  • change the MX records and update SPF, DKIM and DMARC – see the guide how to add SPF and DMARC records,
  • reconfigure email programs on computers and phones.

Step 9: Checks after the move

  • Watch the site for a few days – error messages, forms, orders.
  • Check that automatic backups and cron jobs work on the new server.
  • Check Google Search Console for any new errors.
  • Cancel the old hosting only after a few days or weeks, once you are sure everything works and you have a backup.

The most common migration mistakes

  • Changing nameservers without transferring all DNS records – email stops working.
  • Cancelling the old hosting before the site has been tested.
  • An older PHP version on the new server – the site shows an error.
  • Forgotten cron jobs and integrations with external systems.

Frequently asked questions

How long does a website migration take?

Moving a typical website takes a few hours. The whole process, including preparation, lowering the TTL, testing and checks after the switch, usually spreads over several days. Large online shops or moving email with lots of messages can take longer.

Will I lose my Google rankings when I move?

If neither the domain nor the page addresses change, and the site works the same or faster on the new server, rankings should not change. The risk comes if the site is down for a long time during the move, or if page addresses change without redirects.

Can I handle the migration myself?

For a simple website with a migration plugin, yes, if you follow the process and have a backup. For an online shop, moving email or changing nameservers, I recommend leaving the move to someone who does it regularly. Mistakes here show up as lost sales or lost emails.

How I can help

I will move your website and email to new hosting so that neither visitors nor customers notice any downtime. I will help you choose hosting, transfer your DNS records and check the site after the move. The price of a migration is from €100; more on the website migration to new hosting page. If you want peace of mind after the move, I can also look after the site regularly as part of website maintenance.