>

How to move a website to a new host without downtime

The Chmura.tech team · a guide for website and shop owners

Changing hosting usually means one thing: the site disappears for a few hours and visitors get an error. It doesn't have to be like that. If you prepare the move in advance, changing the server address takes a few minutes and visitors don't notice anything. Below is the order we recommend.

1. Make a full backup

Before you touch anything, save everything that runs on the current hosting: the site files, the database and the configuration (for example the .htaccess file or PHP settings). Keep the backup outside the server you copied it from.

2. Lower the DNS record lifetime

Every DNS record has a TTL value: the time other servers remember its answer. If the TTL is 24 hours, the new address reaches visitors with a delay. Set the TTL to 300 seconds (5 minutes) 24 to 48 hours before the move. After the change, you can raise it again.

3. Upload the site to the new host and test it

Move the files and the database to the new server before you change the DNS records. The site should already work under a temporary address. Test the most important functions: login, forms, the basket and sending emails. In a shop, check payments in test mode.

4. Prepare the SSL certificate

Install a certificate for your domain on the new server before traffic is redirected. That way, after the DNS change, visitors won't see a warning about an insecure connection.

5. Switch the DNS records

Change the A record (and AAAA, if you use it) so that it points to the new server. MX records and email are a separate matter: don't change them until the mailboxes have been moved. Otherwise some messages may go astray.

6. Keep the data safe during the switch

If the site changes in real time (orders, sign-ups, comments), pick a moment with little traffic. After the switch, check that new data reaches the right database and that the old site no longer accepts changes.

7. After the move

Checklist

Don't want to do it yourself? We can move the site for you, including DNS and the certificate. Write to us at [email protected].

The Chmura.tech team

← Back to guides