ChangeChecklist
Personal or business

Move your website to a new host

Moving hosts means copying files, databases and settings, testing before the switch, and not losing the email, DNS or cron jobs that lived on the old account. Plan the move and switch without downtime.

Official sources last reviewed . How we review

Build your personalized plan

A few questions, revealed as they become relevant. Your answers stay in this browser.

Changing: Web hostStep 1 of 6. 0 of 10 questions answered Answers stay in this browser

Start with the basics

Where are you?

Some items depend on local rules, like government sign-in or mail forwarding. Pick where you live or where the change applies.

Is this for you or for a business?

We never ask for phone numbers, card numbers, passwords or codes. Names of providers or nicknames are enough.

Your plan so far

15things this change touches

  • critical5
  • high7
  • moderate2
  • low1

Updates as you answer. Every item will explain why it's there.

What could break

In a typical web host plan, these are the most serious things to get right.

  • Take full backups you control

    Critical, Data & files

    If the migration goes wrong after the old account ends, there's nothing to restore from.

  • Mailboxes hosted by the old web host

    Critical, Email delivery

    Cancelling the old hosting deletes the mailboxes, and mail stops arriving if MX records point at a server that's gone.

  • DNS zone hosted by the old web host

    Critical, Website & DNS

    When the hosting account closes, the website, email and every subdomain stop resolving at once.

  • Environment variables, secrets and config files

    Critical, Website & DNS

    The site can't reach its database or third-party services, or every user is signed out if security salts change.

  • Migrate the database

    Critical, Data & files

    Encoding mistakes, version mismatches or a partial import can corrupt content or lose records.

  • Services that allowlist your server's IP address

    Critical, Integrations & APIs

    Payments, API calls or database connections fail from the new host even though the site loads.

  • Test on the new host before switching DNS

    Critical, Website & DNS

    Problems only show up once every visitor is on the new host.

  • Plan a final database sync at the switch

    Critical, Data & files

    Orders, accounts or messages made during the switch exist only on the old host and are easy to lose.

  • SSL certificate on the new host

    Critical, Website & DNS

    Visitors see security warnings until a certificate is issued, and APIs and webhooks refuse to connect.

  • Point DNS at the new host

    Critical, Website & DNS

    A missed record (www, an AAAA record or a subdomain) leaves part of your traffic on the old server.

Before and after the change

Before you change it

  • Inventory what the current host doesMust do
  • Take full backups you controlMust do
  • Mailboxes hosted by the old web hostMust do
  • DNS zone hosted by the old web hostMust do
  • New hosting account: access, billing and contactsMust do
  • Match runtime versions and server settingsMust do
  • Environment variables, secrets and config filesMust do
  • Migrate the databaseMust do
  • Copy files and mediaMust do
  • Services that allowlist your server's IP addressMust do
  • Scheduled tasks (cron jobs)Must do
  • Forms and outgoing email from the siteMust do

After the change

  • Plan a final database sync at the switchMust do
  • SSL certificate on the new hostMust do
  • Point DNS at the new hostMust do
  • Inbound webhooks during the switchMust do
  • Search engines during the move
  • Backups at the new hostMust do
  • Uptime monitoring and alerts
  • Test everything on the live domainMust do
  • Cancel the old host only after an overlapMust do
  • Remove your data from the old host
  • Update documentation and contacts

Your own plan adds or removes items based on your answers, and explains why each one is there.

The safe order

Doing things in the right sequence is what keeps you from getting locked out halfway through.

  1. Before the change

    Step 1: Inventory what the current host does

    List every site, database, mailbox, DNS zone and scheduled job on the old account.

    • Inventory what the current host does (high risk)
  2. Step 2: Take full backups you control

    Download files and a database dump, and store them outside both hosts.

    • Take full backups you control (critical risk)
  3. Step 3: Move email, DNS and the domain off the old host first

    These outlive the website move and must not depend on the old account.

    • Mailboxes hosted by the old web host (critical risk)
    • DNS zone hosted by the old web host (critical risk)
  4. Step 4: Set up the new host

    Secure the account and match runtime versions, settings and secrets.

    • New hosting account: access, billing and contacts (high risk)
    • Match runtime versions and server settings (high risk)
    • Environment variables, secrets and config files (critical risk)
  5. Step 5: Copy files and databases

    Move the content and data, checking counts on both sides.

    • Migrate the database (critical risk)
    • Copy files and media (high risk)
  6. Step 6: Prepare scheduled jobs, mail and IP allowlists

    Set up what depends on the server itself, not just the files.

    • Services that allowlist your server's IP address (critical risk)
    • Scheduled tasks (cron jobs) (high risk)
    • Forms and outgoing email from the site (high risk)
  7. Step 7: Test the new host before switching

    Use a hosts-file override so you test with the real domain.

    • Test on the new host before switching DNS (critical risk)
  8. Step 8: Lower TTLs and schedule the switch

    Give cached DNS answers time to shorten before the switch.

    • Lower DNS TTL before the switch (high risk)
  9. During the change

    Step 9: Switch traffic to the new host

    Freeze or sync data, make sure the certificate is ready, then change DNS or the CDN origin.

    • Plan a final database sync at the switch (critical risk)
    • SSL certificate on the new host (critical risk)
    • Point DNS at the new host (critical risk)
  10. Immediately after

    Step 10: Check webhooks and search on the live site

    Catch events and crawl issues during the overlap.

    • Inbound webhooks during the switch (high risk)
    • Search engines during the move (moderate risk)
  11. Step 11: Set up backups and monitoring at the new host

    Recreate the safety nets that stayed behind.

    • Backups at the new host (high risk)
    • Uptime monitoring and alerts (moderate risk)
  12. Verify

    Step 12: Test everything on the live domain

    Check real journeys on real DNS, not just through the hosts file.

    • Test everything on the live domain (critical risk)
  13. Clean up

    Step 13: Retire the old host after an overlap

    Wait for traffic to stop, take a final backup, remove data, then cancel.

    • Cancel the old host only after an overlap (high risk)
    • Remove your data from the old host (moderate risk)
  14. Later

    Step 14: Update documentation

    Record where the site lives now.

    • Update documentation and contacts (low risk)

Back up and export first

Save these before you change anything, while the old setup still works.

  • Take full backups you controlMust do

    Download a full copy of the site files (including hidden files like .htaccess and the .well-known folder) and a database dump, and store them somewhere outside both hosts.

How to check it worked

Checks for the most serious items, to do after each step rather than at the very end.

  • Inventory what the current host doesMust do

    Every item in the control panel appears on your list with a plan for where it goes.

  • Take full backups you controlMust do

    Open the archive, check its size looks right, and restore the database dump into a scratch database to prove it's complete.

  • Mailboxes hosted by the old web hostMust do

    `dig example.com MX +short` points at the new mail service, old messages are visible there, and a test message from outside arrives.

  • DNS zone hosted by the old web hostMust do

    `dig NS example.com +short` shows the new nameservers, and key records match the old answers.

  • New hosting account: access, billing and contactsMust do

    Review the account's users, payment method and contact settings.

  • Match runtime versions and server settingsMust do

    Compare the runtime version and extensions on both hosts, and test a few rewritten URLs on the new one.

Leave these until last

These steps are hard to undo: cancelling, closing or removing the old setup. Do them only after the checks above pass, so the old setup is still there if something goes wrong.

  • Cancel the old host only after an overlapMust do

    Wait until DNS has fully moved, the old host's access logs show no real visitors for several days, email and DNS have moved, and you've downloaded a final backup. Then cancel, noting the host's notice period.

  • Remove your data from the old hostRecommended

    Before closing the account, delete databases, backups and files containing customer data, or confirm how and when the host deletes them (verify their current policy).

Why this change needs a plan

Moving to a new host means copying your site's files, database and configuration, testing it on the new server, switching DNS and retiring the old account. If page addresses don't change, visitors and search engines shouldn't notice.

What could break: email mailboxes and DNS that lived on the same hosting account, cron jobs and outgoing mail, payment gateways and APIs that only accept your old server's IP address, webhooks during the overlap, and orders placed after your last database copy. Cancelling the old account too early can delete mailboxes and DNS along with the website.

The safe order is to inventory and back up, move bundled services first, build and test on the new host with a hosts-file override, lower DNS TTLs, switch, then keep the old host running for an overlap.

Why it matters

Your host runs the website, and often your email and DNS too. A rushed move can take all three offline, lose orders made during the switch, or break payments that depend on your server's IP address.

What makes it risky

Risk is highest when email or DNS is hosted with the old host, when the site takes payments or orders continuously, when other services allowlist your server's IP, and when the old hosting ends on a fixed date.

Common mistakes

  • Cancelling the old hosting before moving mailboxes or DNS that lived on the same account.
  • Testing only on a temporary URL instead of the real domain through a hosts-file override.
  • Forgetting cron jobs, or leaving them running on both hosts so emails and charges happen twice.
  • Not adding the new server's IP address to payment gateway and API allowlists.
  • Copying the database once and losing orders or sign-ups made during the switch.
  • Leaving a staging 'discourage search engines' setting switched on at the new host.
  • Switching DNS before a valid certificate can be served on the new host.

Frequently asked questions

Will moving my website to a new host affect SEO?

Not if page URLs stay the same and the site stays up. Google's guidance is to keep the old host running until its traffic stops and to expect a temporary dip in crawling while it adjusts to the new server, which usually recovers. Check that robots.txt and search-visibility settings on the new host allow crawling.

Will my email stop working when I change web hosts?

Only if your mailboxes are hosted by the web host, which is common with cPanel-style hosting. In that case, move email first and update the MX records before cancelling. If you use Google Workspace or Microsoft 365, email is separate, but check MX records aren't changed by accident.

How do I move hosts without downtime?

Run both hosts side by side. Copy the site, test it on the new host using a hosts-file override, lower your DNS TTL a day ahead, switch DNS, and keep the old host running until its traffic stops. If the site takes orders, do a final database sync at the switch.

When should I cancel my old hosting?

After DNS has fully moved, the old host's access logs show no real visitors for several days, email and DNS are elsewhere, and you've downloaded a final backup. A week or more of overlap is a sensible minimum.

Do I need a new SSL certificate when I change hosts?

The new host needs its own valid certificate for your domain. Free automated certificates validated over HTTP can only be issued once DNS points at the new host, so either use DNS validation, copy the existing certificate temporarily, or be ready to issue one immediately after the switch.

Can I test my site on the new host before changing DNS?

Yes. Add a line to your computer's hosts file that maps your domain to the new server's IP address, or use `curl --resolve`. You'll see the new host with the real domain while everyone else still sees the old one.

A read-only look at your domain's DNS, email records, HTTPS certificate and registration. Save a snapshot before the change and compare after. No logins, nothing is changed.

Run the before check

Often done together

Planning something else?

More checklists in Websites & domains · All changes