How to transfer a site to a new hosting without downtime

Contents

Introduction

Make a backup

Move the site in test mode

Switch DNS only after verification

What to check after transfer

Brief: what to remember

How to transfer a site to a new hosting without downtime
How to transfer a site to a new hosting without downtime

How to migrate a website to a new hosting without downtime

Migrating a website to a new hosting seems complicated only at first glance. In fact, most problems arise not because of the migration itself, but because of haste: forgetting to make a backup copy, not checking the database, incorrectly changing the DNS, or not testing the site before launching.

To keep the site available to users, the migration must be carried out in stages. The main thing is not to turn off the old hosting until the new version of the site is fully operational on the new server.


Prepare a backup copy

Before migrating, you need to save the site files, database, media files, configuration, mail settings, and DNS access. This will allow you to quickly return to working condition if something goes wrong during the migration.

Minimum list:

  • site files;
  • database;
  • access to old and new hosting;
  • access to domain or DNS panel;
  • current DNS records;
  • email account details, if used.

Migrate the site in test mode

Don't switch the domain right away. First, deploy the site on a new hosting, connect the database, check the configuration, and test the operation via a temporary domain or hosts file.

You need to check the main page, forms, cart, personal account, admin, search, filters, sending mail, and critical user scenarios.


Switch DNS only after checking

When the site is already running on the new server, you can change DNS. To make the transition smoother, it is advisable to reduce the TTL in advance. It is better to leave the old hosting active for some time until the DNS is fully updated.


What to check after the transfer

  • whether the site opens with www and without www;
  • whether the SSL certificate works;
  • are the redirects broken;
  • are the forms working;
  • is the mail being sent;
  • are all the images and files available;
  • are there any errors in the logs.

In short: what to remember

Safe migration is preparation, test run, verification and only then switching the domain. If you do not turn off the old hosting in advance, the risk of downtime is much lower.