CompareHostingOnline

Home / Guides / Website migration checklist: move to a new host with little or no downtime

Guide

Website migration checklist: move to a new host with little or no downtime

A step-by-step checklist for moving a site to a new host: preparation, copying files and databases, testing before DNS, the switch and cleanup.

By Muhammad Hamza, Founder & EditorUpdated Nov 30, 2026
Old hostNew host Then point DNS

Short answer

Back up everything, set up the new host, copy files and the database, test on the new server before changing DNS, then switch DNS and keep the old host for a few days. Move email last and watch for errors.

Last verified Nov 28, 2026 · How we test
At a glance
  • What is the best way to migrate a website?The safe pattern is the same for any site: copy the site to the new host, test it there while the old one still serves…
  • What should you do before you move?Take a full backup of files and the database and store it away from both hosts; see website backups.
  • What are the steps of the move?Use the host's migration tool, a plugin or manual transfer.

What is the best way to migrate a website?

The safe pattern is the same for any site: copy the site to the new host, test it there while the old one still serves visitors, then switch DNS. Because the old site stays live until the switch and for a few days after, visitors see no downtime, and you can roll back by pointing DNS back. The details vary by platform. This checklist covers the general steps, and how to transfer a WordPress site adds the WordPress specifics.

What should you do before you move?

  • Take a full backup of files and the database and store it away from both hosts; see website backups.
  • Write down every DNS record and lower the TTL to about five minutes a day ahead; see what DNS records are.
  • List cron jobs, redirects, email accounts, forwarders and custom server settings.
  • Check that the new host runs compatible PHP, database and software versions; see PHP versions on hosting.
  • Decide who handles email and whether it moves; see move email to a new host.
  • Pick a quiet time for the DNS switch.

What are the steps of the move?

  1. Copy files and database

    Use the host's migration tool, a plugin or manual transfer.

  2. Test on the new server

    Preview with a temporary URL or by editing your hosts file.

  3. Switch DNS

    Point the domain to the new host; see how to point a domain to your hosting.

  4. Verify and monitor

    Check forms, logins, SSL and email, then watch logs and search console.

How do you test before the switch?

Test everything a visitor does. Click through the main pages, submit each form, log in, run a checkout in test mode, and check images, fonts and links for mixed content or broken paths. Compare the old and new sites page by page. To view the new server at your real domain before DNS changes, add a line to your computer’s hosts file that maps the domain to the new server’s IP address, or use the temporary URL your host provides. Remove the hosts entry afterwards so you see the real DNS.

How do you switch DNS?

Change the A record to the new server, or change the nameservers if you use the new host’s DNS; see nameservers explained. Because you lowered the TTL, most visitors will reach the new server within minutes. Keep the old host running, and expect some visitors to see the old site until caches expire. If you accept comments, orders or other changes, freeze them for the short switch window or merge the data afterwards.

What do you do about SSL, email and search engines?

  • Issue a certificate on the new host once the domain points to it; see what an SSL certificate is.
  • Update MX and sender records if email moves, and test sending and receiving.
  • Keep the same URLs. If URLs change, set permanent redirects from each old URL to its new one.
  • Resubmit your sitemap and watch coverage reports in search console for new errors.
  • Check that robots.txt on the new server is the live version, not a staging one that blocks crawlers.

What should you check after the move?

  • Page speed and server errors in the first days.
  • Scheduled jobs, backups and email on the new host.
  • Redirects, canonical tags and the sitemap.
  • Forms, search, comments and any integrations with outside services.
  • Analytics and conversion tracking.

When can you cancel the old host?

After the new site and email have worked for a few days, DNS has settled everywhere and you have a backup of the old account. Then follow how to cancel web hosting without losing your site and turn off auto-renewal. If a domain is registered at the old host, transfer it first; see how to transfer a domain name.

What are the common mistakes?

  • Switching DNS before testing the new server.
  • Cancelling the old plan too early.
  • Forgetting email, cron jobs or redirects.
  • Leaving a long TTL in place before the move.
  • Moving a site that is mid-update without a backup.

A worked example: a 48-hour migration timeline

A site owner plans a move over a weekend. Thursday: take full backups, record DNS and lower the TTL. Friday: set up the new host, copy files and database, and install the certificate. Friday evening: test the site on the temporary URL, including forms, logins and checkout in test mode. Saturday morning: freeze content changes, make a final copy of the database and apply it to the new server. Saturday midday: switch the A record. Saturday afternoon: test again from mobile data and check email. Sunday: monitor logs and search console, fix small issues and restore the normal TTL. The old host stays active until the following Friday.

Because each step had a purpose and a rollback, the owner could stop at any point. If the switch had failed, pointing the A record back would have restored service in minutes.

What does a rollback plan look like?

  • Keep the old server and its data intact until the move is confirmed.
  • Record the original DNS values so you can restore them.
  • Decide in advance what failure looks like, such as errors at checkout.
  • Know how long DNS will take to revert and who must be told.
  • Keep a copy of any data created on the new server in case you need to bring it back.

Sources and further reading

Common questions

How long does a website migration take?

A small site can move in an hour or two, and larger sites, shops and email take longer. DNS changes add waiting time of minutes to a day. Plan a few days of overlap before you cancel the old host.

Will my site go down during a migration?

Not if you test on the new server first and switch DNS afterwards, keeping the old host live. Lower the TTL a day ahead so the change spreads quickly, and avoid changing content during the switch.

Should I pay for migration?

Many hosts offer free migration for new customers. Check what it covers, whether it includes email and databases and how they test the result. Doing it yourself is possible with the steps in this checklist.

How do I preview my site on the new host before DNS changes?

Use the host's temporary URL, or add a line to your computer's hosts file mapping the domain to the new server's IP address. Test thoroughly, then remove the hosts entry.

When should I cancel the old host?

After the new site and email have worked for several days, DNS has settled and you have a backup of the old account. Cancel in writing, turn off auto-renew and check where your domain is registered first.

Related

More guides

Esc

Use the arrow keys, then Enter.