How to Move Your Website to a New Host With Zero Downtime (Complete Walkthrough)

Moving a website between hosts done carelessly can lose incoming email during the transition, break search rankings from a mishandled DNS change, or take the site fully offline for hours while DNS propagates. Done correctly, in the right sequence, none of these are necessary โ€” the whole process can run with zero visitor-facing downtime.

Step 1: Set Up the New Host Fully Before Touching DNS

Create the new hosting account, upload all files, import the database, and get the site fully working on the new server's temporary URL or IP address (most hosts provide a way to preview a site before the domain points to it) before making any DNS change at all. Test every page, every form submission, and every database-dependent feature on this temporary URL first.

Step 2: Lower the DNS TTL in Advance

DNS records have a TTL (Time To Live) value controlling how long other servers cache the old DNS answer before rechecking. Lowering the TTL (to something like 300 seconds/5 minutes) at least 24-48 hours before the actual cutover means that when the DNS record is finally changed, the change propagates to most of the internet within minutes instead of the default 24+ hours a typical TTL would take.

Step 3: Handle Email Separately and Carefully

If email runs through the same hosting account (common with cPanel-based shared hosting), moving the domain's DNS without first confirming the new host's mail settings can cause incoming email to bounce or silently disappear during the transition window. Set up email on the new host in parallel first, and only switch MX records once the new host's mail is confirmed working โ€” many businesses safely run both old and new mail systems briefly during transition by checking both inboxes.

Step 4: The Actual Cutover

  1. Confirm the site is fully functional and tested on the new host's temporary URL.
  2. Confirm the DNS TTL has been low for at least 24 hours.
  3. Update the domain's A record (and MX records, if email is moving too) to point to the new host.
  4. Monitor both old and new servers during the propagation window (typically minutes to a few hours with a properly lowered TTL) โ€” some visitors will briefly hit the old server, some the new, depending on DNS caching along their specific path.
  5. Once propagation is confirmed complete (checkable via a DNS propagation checker tool), the old hosting account can be safely cancelled.

Protecting SEO During the Move

If any URL structure is changing as part of the move (not just the host, but the actual page paths), set up 301 redirects from old URLs to new ones rather than letting old URLs simply 404 โ€” this preserves the accumulated search ranking value of existing pages. If URL structure is staying identical and only the underlying host is changing, SEO impact should be minimal to none, since Google is indexing the same URLs throughout.

WebsNP's Free Migration Service

WebsNP performs free cPanel-to-cPanel migrations for new customers moving from another host, following this exact sequence, with the goal of genuinely zero downtime and zero lost email during the transition โ€” worth mentioning specifically because a DIY migration attempted without the TTL-lowering step in advance is the most common cause of visitor-facing downtime during a host switch.

{$cta}

What to Do If Something Goes Wrong Mid-Migration

Even with careful preparation, a migration can surface an unexpected issue โ€” a PHP version mismatch causing an error on the new host, a database charset difference, a missing server module the old host had installed and the new one doesn't. Because the old site remains live and untouched until DNS is actually switched, discovering and fixing this kind of issue on the new host's temporary URL costs zero visitor-facing downtime; the mistake to avoid is switching DNS before every page and feature has been genuinely tested working on the new host, not just spot-checked.

Talk to WebsNP

Kathmandu and Pokhara based, serving businesses across Nepal and worldwide since 2014. Fixed-price quotes within 24 hours, no obligation.

Get in Touch