All posts

Blog

How to Move Your Website to a New Host Without Downtime

Illustrated cover for the Migration & Backups guide "How to Move Your Website to a New Host Without Downtime"

Moving a website to a new host can feel risky. What if the site goes down, email stops, or something gets lost? The good news is that with a clear plan, visitors won't notice a thing. Here's how to do it, step by step.

Moving to Host Whimsy shared hosting? Migration is free. Our team copies your website, files, databases and email across for you, and tests everything before you switch. Here's how to request it. This guide explains what happens, so you know what to expect, and covers the steps if you'd rather do it yourself.

The golden rule

Don't cancel your old hosting until the move is complete and your domain is pointing to the new host. During the switch, some visitors still reach the old server. Keeping it running is what makes zero downtime possible.

Step 1: Take an inventory

Before moving anything, list what you have:

  • Websites and domains, including subdomains and addon domains
  • Databases, and which site uses each
  • Email accounts and forwarders, plus roughly how much mail each holds
  • DNS records: export or screenshot the full zone, including MX, TXT (SPF, DKIM, DMARC, verification records) and any CNAMEs for outside services
  • Cron jobs and scheduled tasks
  • PHP version and any special settings
  • SSL requirements
  • Where your domain is registered, and who controls the nameservers

This list becomes your checklist for testing.

Step 2: Lower your DNS TTL

A day or two before the move, lower the TTL on your main records (A, www, MX) to around 300 seconds at your current DNS provider. When you switch, the change spreads within minutes instead of hours. See what is DNS propagation?

Step 3: Back up everything

Take a full, fresh backup of files, databases and email from your old host, and download it. Even if your new host handles the move, it's your safety net. See the 3-2-1 backup rule for websites.

Step 4: Copy your site to the new host

The easy way: a full account transfer

If both hosts use the same control panel, a full account backup and restore copies everything in one go: files, databases, email and settings. This is often how hosts do it for you.

The manual way

  1. Files: download your site's folder (for example public_html) as a compressed archive and upload it to the new account. See uploading your website files.
  2. Databases: export each database with phpMyAdmin and import it into a new database on the new host.
  3. Config files: update database names, users and passwords in files like wp-config.php.
  4. Email: create the same mailboxes on the new host. Copy existing mail across with an IMAP migration tool, or by adding both accounts to an email app and dragging folders across.

For WordPress specifically, a migration plugin can bundle the site and database into one file, which can make the move simpler.

Step 5: Test before you switch DNS

Check the site on the new host before pointing your domain. The simplest method is editing your computer's hosts file to point your domain to the new server's IP, so only you see the new copy. Then check:

  • ☐ Home page and key pages load correctly
  • ☐ Images and styles load
  • ☐ You can log into the admin area
  • ☐ Forms send email
  • ☐ Shop, cart and checkout work, if you have them
  • ☐ No database or PHP errors

Remove the hosts file entry when you're done.

Step 6: Freeze changes on the old site

To avoid losing content, avoid changes on the old site from the moment you copy until the switch is complete: no new posts, no new orders if possible, no settings changes. For busy stores, plan the move for a quiet time, and do a final database sync just before switching.

Step 7: Switch DNS

Now point your domain to the new host, either by:

  • Changing nameservers to your new host's. At Host Whimsy, ns1.hostwhimsy.com / ns2.hostwhimsy.com for cPanel plans and ns1.hostwhimsy.net / ns2.hostwhimsy.net for DirectAdmin plans. Make sure any custom records (like email services hosted elsewhere, or verification TXT records) are recreated first.
  • Or updating A records at your existing DNS provider to the new server's IP.

See pointing your domain to Host Whimsy and nameservers vs DNS records.

Step 8: Watch the switch

  • SSL: the free certificate on the new host is usually issued automatically within a few hours of your domain pointing there. See free SSL: how it works.
  • Email: for a day or two, some mail may still arrive at the old server. Check both, or move any stragglers across.
  • Errors: keep an eye on your site and error logs.

Step 9: Clean up

Once DNS has fully switched (allow 48 hours) and everything works:

  1. Do a final check of the old mailboxes for any mail that arrived late.
  2. Raise the TTL back up to an hour or more.
  3. Change the password on your old hosting account, especially if you shared it with anyone for the migration.
  4. Download a final backup from the old host, then cancel the old service.

Common problems and fixes

Problem Likely cause
"Error establishing a database connection" Wrong database details in config. See this guide
Site works but email doesn't MX records not updated or not recreated
SSL warning Certificate not issued yet, or DNS still propagating
Old content showing DNS or browser cache. Wait, or flush your cache
Broken images or links Hard-coded URLs, or files missed in the copy

Let us do it for you

If you're moving to Host Whimsy shared hosting, open a ticket after signing up with:

  • The domain or domains you want moved
  • Your old host's control panel address, username and password (cPanel, DirectAdmin, Plesk and so on), or FTP and database access if that's all you have
  • Anything we should know, like mailboxes you no longer need or a quiet time for the switch

We copy everything, test it, and let you know when it's ready to point your domain. Full details: free website migration. Compare plans on the shared hosting page.

Switch to Host Whimsy for free

Website migration is free on every shared hosting plan. Our team copies your files, databases and email, tests everything, and tells you when it is ready to go live.

Pick a shared hosting plan · How free migration works