Explore WaseerHost

Appearance

GuideWebsite Migration 13 min read

Website Migration Checklist: 12 Steps to Move Hosts Safely

A three-phase website migration checklist: backups, DNS and email inventory, TTL, hosts-file testing, SSL, email cutover, SEO and when to cancel the old host.

Waqas Ahmed Waseer, authorWaqas Ahmed WaseerFounder & CEO
Updated
Website Migration Checklist: 12 Steps to Move Hosts Safely

Summarize with:

Share:

A website migration checklist keeps a host move boring. You back up everything, write down your DNS and email settings, lower the TTL a week early, copy the site, test it on the new server before anyone else sees it, then switch DNS and watch. This guide walks through each step in three phases (before, during and after the move) with the exact settings and the official sources behind them. It covers a plain host-to-host move, where your domain and URLs stay the same, and flags the extra steps you need if they change.

Key takeaways

  • Take a full backup of files, databases and email before you touch anything, and keep a copy off the old server.
  • Record every DNS record, especially MX and TXT records, so email keeps working after the switch.
  • Lower your DNS TTL to a few hours at least a week before the move, as Google recommends, so the switch spreads quickly.
  • Test the new server with your hosts file before changing DNS. Visitors keep using the old server while you check.
  • If your URLs stay the same, you need no redirects and no Search Console change of address. Keep the old host until its traffic reaches zero.

Which kind of migration are you doing?

Google's documentation splits site moves into two cases, and the SEO work differs:

Your moveExampleRedirects needed?Search Console Change of Address?
New host, same URLsexample.com moves from host A to host BNoNo
New URLs on the same domain/blog/post becomes /news/postYes, 301 for every changed URLNo
HTTP to HTTPS, or www to non-wwwhttp://example.com to https://example.comYesNo
New domainexample.com to example.netYes, 301 for every URLYes

For a pure hosting change, Google's site move without URL changes guide has four stages. They are to prepare the new hosting, start the move, monitor traffic and shut down the old servers. The checklist below follows the same order and adds the hosting details that guide leaves out, such as email and SSL.

Phase 1: Before the move

1. Take a full backup

Back up your website files, every database and your email. For a WordPress site, the WordPress migration guide says to back up the WordPress directory, images, plugins and the database before moving.

On cPanel hosting, the Backup tool can create a full backup or partial backups of the home directory, databases, email forwarders and email filters. The cPanel Backup documentation states a limit that catches people out. You "cannot automatically restore a full backup file in cPanel. This function is only available in WHM." In practice, the new host restores a full backup for you, or you restore the partial backups yourself.

Download the backup to your own computer or cloud storage. A backup kept only on the server you are leaving disappears when you cancel that account.

2. Make an inventory of DNS records and email

Log in to wherever your DNS is managed (your registrar, your current host or a DNS provider) and write down every record. You can also see the public records with a DNS lookup. The ones that matter most in a move:

RecordWhat it doesWhat usually happens in a move
A / AAAAPoints the domain to the web server's IPChanges to the new server's IP
CNAMEAliases one name to another (often www)Usually stays the same
MXSays which server receives your emailChanges only if email moves too
TXTSPF, DKIM, domain verificationCopy exactly; update SPF/DKIM if mail moves
NSWhich nameservers answer for the domainChanges only if you move DNS hosting

MX records matter because mail servers use the DNS Mail eXchanger mechanism to find where to deliver your email (RFC 5321). Miss one and email quietly stops arriving.

For email, also list every mailbox, forwarder and autoresponder, and decide now whether email will move to the new host or stay where it is. If you're not sure how nameservers fit in, read what nameservers are first.

3. Lower the TTL at least a week in advance

Every DNS record has a TTL (time to live). RFC 1035 defines it as the time interval, in seconds, that a record "may be cached before it should be discarded". If your A record has a TTL of 86,400 seconds (one day), resolvers that cached it can keep sending visitors to the old server for up to a day after you change it.

Google's advice is specific: "Lower the TTL to a conservative low value (for example, a few hours) at least a week in advance of the move to refresh DNS caches faster" (Google Search Central). The week matters because the old, long TTL has to expire from caches before the new short one takes effect.

Some DNS providers let you go lower. Cloudflare, for example, has an Auto TTL of 300 seconds and a minimum of 60 seconds on non-Enterprise plans (Cloudflare docs). Lower the TTL on the A, AAAA and MX records you plan to change.

4. Record your SEO baseline

Before anything changes, export the numbers you will compare against later: a list of your URLs (your XML sitemap is a good start), your top pages, and current traffic from Google Search Console and your analytics. Make sure your Search Console verification (HTML file, meta tag or analytics tag) will be copied to the new server, as Google recommends.

Phase 2: The move

5. Copy files and databases

Copy the site files to the new server, create the database and database user, and import your database export. Match the PHP version you used on the old host so nothing breaks on day one.

For WordPress, if the database name, user or password changed, edit wp-config.php to the new values (WordPress migration guide). If the domain or URL also changes, don't run a raw find-and-replace on the database. WordPress warns this "can cause issues with data serialization". Use a tool that handles it, such as WP-CLI:

bash
# WP-CLI, run in the WordPress folder on the new server
wp search-replace 'old-domain.com' 'new-domain.com' --skip-columns=guid

That --skip-columns=guid flag follows WordPress's own advice never to change the GUID column. For a same-domain move to a new server (the "wordpress migration to new server" case), you don't need a search-replace at all.

6. Test on the new server with your hosts file

Most checklists skip this step, and it prevents downtime. Your computer checks its local hosts file before asking DNS, so you can point only your own machine at the new server. Microsoft's own docs describe this exact use: the hosts file lets you "see how it will look on the new server" while migrating to a new host (Microsoft Learn).

Add a line with the new server's IP, then your domain (use your real IP; 203.0.113.10 is a documentation example):

text
203.0.113.10    example.com
203.0.113.10    www.example.com

Windows: the file is in %WinDir%\System32\Drivers\Etc (normally C:\Windows\System32\drivers\etc\hosts). Open Notepad as administrator, then open the file from that folder (Microsoft Support). Microsoft's PowerToys Hosts File Editor does the same job with a form.

macOS: Apple's instructions use Terminal (Apple Support):

bash
# macOS Terminal
sudo nano /private/etc/hosts

Add your lines, press Control-O, then Enter to save, then Control-X to exit. Then flush your DNS cache so the change takes effect.

Now browse the site and check: pages load, images show, forms send, logins work, checkout works, and there are no database connection errors. Remove the hosts lines when you finish, or you will keep seeing the new server after you go live and miss problems.

7. Prepare SSL on the new server

Make sure HTTPS will work the moment visitors arrive. If your new host issues certificates from Let's Encrypt, find out which validation method it uses: with the HTTP-01 method, Let's Encrypt checks a file at http://<YOUR_DOMAIN>/.well-known/acme-challenge/ on port 80 (Let's Encrypt), so it can only succeed once the domain points to the new server. The DNS-01 method uses a TXT record instead and can issue before the switch. If your new host uses HTTP-01, plan to check HTTPS straight after the DNS change.

8. Switch DNS

When testing passes, update the A (and AAAA) records to the new server's IP, or change nameservers if you are moving DNS hosting too. Before you switch, remove any noindex tags or robots.txt blocks you used on the new server during testing. Google calls this out as a step before updating DNS.

Because you lowered the TTL a week ago, cached copies of the old record expire within a few hours. Cloudflare notes that a local DNS cache "may take longer to update", so expect a short overlap where both servers get traffic.

9. Cut over email

If email is moving too:

  1. Create every mailbox and forwarder on the new host, with the same addresses.
  2. Update the MX records, plus SPF and DKIM TXT records, to the new host's values.
  3. Keep the old mailboxes open for a few days. During the overlap, some senders still deliver to the old server, so check it and move any stray messages.
  4. If you need old messages on the new server, copy them across before closing the old mailboxes, then reconnect email apps with the new server settings. The guide to SMTP, IMAP and POP3 ports lists the standard ports.

If email stays where it is, copy the existing MX and TXT records exactly and don't change them.

Phase 3: After the move

10. Check SEO safety

If your URLs did not change, there is nothing to redirect. Google's guide for a hosting-only move needs no redirects and no change of address; the work is testing, DNS and monitoring.

If URLs did change, Google recommends "server side permanent redirects from the old URLs to the new URLs" (301 or 308), mapped one to one, and says to keep them "for as long as possible, generally at least 1 year" (site move with URL changes). Submit your new sitemap in Search Console.

Use the Change of Address tool only when the domain or subdomain changes, such as example.com to example.net. Google says not to use it for HTTP to HTTPS moves, www changes, path changes or moves with no URL change. You must own both properties in Search Console, and the tool's effect lasts 180 days.

11. Monitor for a week or two

  • Check the site from a different network or your phone, without the hosts file edit.
  • Watch Search Console's indexing and sitemap reports for errors or unexpected drops.
  • Watch server logs on both old and new servers. Google notes crawl rate can fluctuate after a move "because we determine crawl rate for a site based on many signals, and these signals change".
  • Test forms, checkout and outgoing email once more on the live site.
  • When things are stable, you can raise the TTL back to its normal value.

12. Cancel the old host only when traffic reaches zero

Google says: "Once the traffic to the old provider reaches zero, you can shut down your old hosting infrastructure." Check the old server's access logs and old mailboxes before cancelling. Take one last download of anything you may need, such as old email or logs, because cancelling an account can delete its files and mail.

If the old host also holds your domain registration, cancel hosting only, not the domain. If you need a refresher on the difference, see domain vs web hosting.

Website migration checklist at a glance

PhaseTaskDone when
BeforeFull backup, stored off-serverFiles, databases and email downloaded
BeforeDNS and email inventoryEvery record and mailbox listed
BeforeLower TTLAt least a week before the switch
BeforeSEO baselineURL list and traffic exported
MoveCopy files and databasesSite runs on the new server
MoveHosts-file testPages, forms and logins work
MoveSSL readyValidation method known
MoveSwitch DNSA/AAAA (or NS) updated, noindex removed
MoveEmail cutoverMX/SPF/DKIM updated, old mailboxes checked
AfterSEO checksRedirects and change of address only if URLs or domain changed
AfterMonitorNo errors in Search Console or logs
AfterCancel old hostOld server traffic is zero

If something goes wrong

  • Some visitors still see the old site. That is cached DNS. Wait out the old TTL, and flush DNS on your own devices.
  • "Error establishing a database connection". The database name, user, password or host in your config file doesn't match the new server.
  • Certificate warning. The certificate wasn't issued yet, often because HTTP-01 validation needed the DNS change first. Re-run issuance now that DNS points to the new server.
  • Email stopped arriving. Compare the live MX records with your inventory, and check the old mailbox for mail delivered during the overlap.
  • Rankings dropped after a URL change. Check for missing or chained redirects, and that the new URLs are not blocked by robots.txt or noindex.

Moving to WaseerHost

WaseerHost offers free website migration for sites moving in. Every plan uses cPanel and includes free SSL certificates, so you can run the same checklist above on the new account; see current shared hosting plans.

Frequently asked questions

Back up your files, databases and email, record your DNS records and lower the TTL a week early. Then copy the site, test it with your hosts file, prepare SSL, switch DNS and move email. Finish by monitoring traffic and only cancel the old host once it gets no traffic.

Waqas Ahmed Waseer

Written by

Waqas Ahmed Waseer

Founder & CEO

Founder and CEO of Wasevo LLC, the company that runs WaseerHost. He works on cPanel/WHM servers, WHMCS billing and the Next.js storefront.

Related Guides

Get new guides by email

One short email when we publish something useful. No spam; unsubscribe at any time.

Free SSL · Free migration · 24/7 support

Free website migration

Request a migration
30-day money-back guarantee

Renews at the same price for the term you choose