Website Hosting Migration: A Step-by-Step Guide to Moving Hosts

A hosting migration is a copy job with a switch at the end: you copy your site’s files, database and settings to a new server, test the copy, then point your domain at it. Done in that order, visitors never see a broken page. Most failed migrations come from two mistakes made before any file moves: choosing a destination host on marketing claims instead of measured speed, and changing DNS before the copy has been tested. We test hosts for a living, so this guide starts with the destination and then walks through the move itself, including WordPress specifics.

SycamoreNet
Choose Your Next Host With Evidence
Compare hosting options and measured speed benchmarks before you move your site, so you can make an informed destination choice.

Best WordPress Hosting

Key Takeaways

  • Hosting migration moves files, database, email and settings. It is not a domain transfer, and your domain and URLs can stay exactly as they are.
  • Choose the destination from benchmark data (cold-cache TTFB, load behavior, renewal price) before you copy anything. Moving twice costs more than choosing well once.
  • Keep the old site live and untouched until the new copy is tested through a temporary address or a hosts-file preview.
  • Change DNS last, during a low-traffic window, and keep the old host running while you monitor both servers.
  • For WordPress, never run a raw search-and-replace on the whole database. Serialized data can break.

Table of Contents

What Hosting Migration Actually Moves

Your website has three parts that live in different places. The domain is your address, and it sits at a registrar. The hosting is the server that stores and serves the site. The DNS records are the instructions that connect the two. A hosting migration changes only the middle piece and then edits the DNS records to match.

That distinction answers a question many owners ask first: do you need to transfer your domain to change hosts? No. Google’s documentation describes a hosting change as switching providers without any user-visible URL change, and the domain simply keeps pointing where you tell it to point. Be wary of any provider that insists you move your domain registration as a condition of moving your site. Keep the two decisions separate in your planning.

What you need to carry across:

Get Big Discounts for Internet, Phone, Mobile, and WIFI.
Up to 50% off
Toll-Free Number 1-855-202-7237
(Xfinity, Spectrum, COX, Verizon, AT&T, T-Mobile, etc.)

  • Website files: themes, plugins, uploads, configuration files and hidden files such as .htaccess.
  • The database: posts, pages, orders, users and settings. For a WordPress or WooCommerce site this is where nearly everything you care about lives.
  • Email: if your mailboxes sit on the same server as your site, they do not move automatically. Plan them separately, or move email to its own service first.
  • Third-party connections: payment gateways, CDN settings, analytics tags, SSL certificates and cron jobs.

An overview of how migrations affect rankings, including mapping every URL so nothing changes by accident, is covered in this site migration SEO checklist. If your URLs stay identical, as they do in a pure host change, most of that risk disappears. That is the main reason to keep URLs untouched during the move.

Step 1: Choose the Destination Before You Move

Migration is the cheapest moment to fix a slow host, so use it. A move to an equally slow server gives you a weekend of work and no improvement.

The numbers that matter are time to first byte (TTFB, how long the server takes to start answering), behavior under concurrent visitors, and what the plan costs after the introductory term ends. Introductory pricing is the trap here: a host that looks cheap at signup can cost several times more at renewal. We break down real numbers in our guide to what website hosting costs in 2026, and we publish cold-cache TTFB, 50-virtual-user load results and global latency in our fastest web hosting benchmarks. We run these tests on self-funded accounts with documented methods, so you can compare hosts on measurements rather than on a sales page.

Match the host type to the site:

  • A WordPress blog, publisher site or agency client site: managed WordPress hosting, where the server stack is tuned for WordPress and caching is built in. Our ranked list of managed WordPress hosts is the place to start.
  • A WooCommerce store: the same category, but weigh load results and uncached performance more heavily, because carts and checkouts cannot be served from a page cache.
  • A developer or a custom application: cloud or VPS hosting, where you control the stack and carry more of the setup yourself.

We rate WPX as the best-value managed WordPress host we have tested, and our WPX review lays out the measurements behind that verdict, including its pricing structure. If speed and straightforward renewal pricing are your priorities, that is the review to read before you sign up anywhere.

Step 2: Back Up Everything, Independently

Before you touch anything, make a complete backup and store it somewhere that is neither your old host nor your new one. If the migration goes wrong, this is your return point.

A complete backup has three components:

  1. All files, copied by SFTP or SSH, including hidden directories and configuration files.
  2. A full database dump (an export of every table to a single .sql file).
  3. Mailboxes, if email is hosted on the same server.

Then verify it. Check that the file sizes look plausible and that the database export contains the number of tables you expect. A backup you have never opened is a hope, not a backup. For a WordPress site, a backup plugin is acceptable for small sites, but a database export through phpMyAdmin or a command-line dump gives you a file you can inspect yourself.

Step 3: Lower Your DNS TTL Early

TTL (time to live) is the number of seconds DNS resolvers around the internet are allowed to remember your current server address. If it is set high, some visitors keep reaching the old server for hours after you switch. Lower it to a few minutes in your DNS settings a day or two before the planned switch. Then, when you do cut over, the change reaches visitors quickly.

DNS TTL timing before and after cutover

This is a two-minute task that most guides bury, and it is the single easiest way to shrink the window in which some visitors see the old site and some see the new one. Raise the TTL again once the new server has proven stable.

Step 4: Set Up the New Account and Copy the Site

Create the hosting account without changing any DNS. Your live site keeps running untouched on the old host while you build the copy.

Check the PHP version on the new host before you import: WordPress needs PHP 7.4 or newer, and a site built on PHP 8.x can break on an older stack.

Then move the data. You have three routes:

  • Manual copy. Upload files over SFTP, create a database on the new host, and import the dump. This is the most transparent method and the best one for large or unusual sites. Large databases often exceed the upload limits of browser-based import tools, in which case use SSH.
  • A migration plugin. Fine for small, standard WordPress sites. It packages files and database into one archive you restore on the new host.
  • A host-assisted migration. Many managed hosts will move a WordPress site for you. Ask what is included, and in particular whether DNS, email and third-party services are covered, because those are often left to the site owner.

Moving WordPress Correctly

WordPress’s own developer documentation gives the baseline: if the database name, user and URLs stay the same, copying the files and the database is enough. If the database name or user changes on the new host, edit those values in wp-config.php. After the site is live on the new server, resave your permalink settings so the rewrite rules regenerate.

The trap is URL replacement. If you must change the site address during a move, a blunt find-and-replace across the entire database can corrupt serialized data, because some themes and widgets store values together with the length of the text. The same documentation recommends tools built for the job, such as WP-CLI’s search-replace command or a dedicated search-and-replace plugin, rather than editing a raw dump in a text editor. Since a pure host change keeps your URLs identical, the best approach is to avoid needing a replacement at all.

WooCommerce stores have one more consideration: orders. Any order placed on the old site after you take your database dump will be missing from the copy. We cover that in the cutover step.

Moving WordPress Correctly

Step 5: Test the New Site Before Anyone Else Sees It

The copy is ready, but the internet still points to the old host. You have two clean ways to look at the new one:

  • Hosts-file preview. Add a line to the hosts file on your own computer that maps your domain to the new server’s IP address. Only your machine sees the new site, at your real domain, so you test exactly what visitors will get.
  • A temporary hostname. Google recommends testing on a temporary address such as a beta subdomain, with a noindex rule so the test copy never enters search results. Google also says to confirm that Googlebot can reach the new infrastructure using the URL Inspection Tool in Search Console, and to check that firewall or DoS protection is not blocking it. All of this is in its guide to changing web hosting.

A testing checklist worth running:

  1. Home page, a few posts, and your most visited landing pages.
  2. Forms, search, login and any membership areas.
  3. For stores: add to cart, checkout with a test payment, and order emails.
  4. Images and media (broken uploads are the most common silent failure).
  5. SSL certificate status on the new server.
  6. Speed. Compare TTFB and page load against your old host. If the new server is not clearly faster, you have learned something before it cost you anything.

Caching and a content delivery network (CDN, a network of servers that serve your static files from locations near your visitors) are worth configuring at this stage. Our guide to setting up CDN caching correctly covers the common mistakes, such as caching pages that should never be cached.

Step 6: Cut Over DNS

DNS is where most migration risk concentrates. Everything up to now has been preparation while the live site ran untouched. The goal at cutover is that the only thing that changes for visitors is which server answers.

There are two ways to switch:

Method What it changes Best for
Edit the A record Only the IP address your domain points to Moving hosting while email and other services stay where they are
Change nameservers Hands all DNS records to the new host Moving DNS management along with hosting, after every record has been copied across

For most hosting-only moves, the A record edit is the smaller and safer change, because email and third-party records are left alone. If you do change nameservers, first replicate every existing record at the new DNS provider, especially MX records for email. A missing MX record means inbound mail can vanish, and the problem can go unnoticed for days.

A few rules for the switch itself:

  • Choose your lowest-traffic window. Your analytics will show it.
  • Freeze changes on a busy site. For a store, membership site or forum, put the old site in maintenance mode, take a final database backup, import it to the new host, then update DNS. This prevents orders and comments from landing on the old server and disappearing.
  • Expect propagation time. With a lowered TTL, most visitors move within minutes to hours, but plan for resolvers elsewhere to lag. Do not treat “I still see the old site” as a failure in the first hours.

Step 7: Monitor Both Servers, Then Retire the Old One

Google’s process ends with monitoring: watch traffic on both servers, and shut the old hosting down only when all users and Googlebot are being served by the new one. In practice:

  1. Keep the old account active for several days after the switch, and longer if your billing cycle allows.
  2. Watch the new server’s access logs. If it shows little traffic while your analytics still counts visitors, something is pointing at the wrong place.
  3. Send test emails to every address and reply from them.
  4. Check Search Console for crawl errors in the first week.
  5. Raise your DNS TTL back to a normal value.
  6. Cancel the old plan only once you are sure the backup you made in step 2 is stored safely.

One cost note: cancel the old plan on time. Many providers renew automatically, and a forgotten renewal is the most avoidable expense in the whole process.

What About Email?

Email is the part of a hosting migration that surprises people. Messages stored on the old server do not follow your site to the new one. If your mailboxes live with your old host, you have three choices: export them before the move, connect each mailbox to a mail client so a local copy exists, or move email to a dedicated mail service before you migrate the site, so the two projects are independent. The last option is the least stressful, because it means the DNS cutover only affects your website.

Common Migration Mistakes

  • Changing DNS before testing. The new site goes live broken, and you are fixing it in public.
  • Editing the old site mid-migration. Anything you publish after the copy is missing from the new site. Freeze content, or repeat the final sync.
  • Forgetting hidden files. Missing .htaccess rules or configuration files cause redirect and permalink failures.
  • Moving to an unmeasured host. The new server turns out no faster, or renews at a price that erases the saving.
  • Cancelling the old host on day one. If you need to roll back, there is nothing to roll back to.

Our Perspective

Every migration we have documented comes down to the same two decisions: where you are moving, and when you flip DNS. The second is procedure. The first is where most owners lose money.

We buy our own accounts, run the same real-world workloads on each host, and publish the method so anyone can check it. That is why we push owners to read benchmark data before they copy a single file. A migration to a host that is only marginally faster, or one that doubles its price at renewal, is a migration you will repeat in two years.

On our testing, WPX is the managed WordPress host we recommend first: fast cold-cache response, stable under load, and priced without a renewal surprise. If you are moving a WordPress or WooCommerce site and want the shortest route to a host that has already been measured, start there, then follow the steps above in order. Back up, lower TTL, test privately, switch DNS last.

Ruffa Mae Lareño

Pick the Host First, Then Move

If you are planning a move, our lab results do the comparison work for you. Our ranked list of managed WordPress hosts tested in our speed lab shows how each performs on TTFB, load and value, so you can choose the destination before you start copying files.

Sycamorenet

You can also read our full WPX review if you want to see the test data behind our top managed WordPress pick.

FAQ

How long does a website hosting migration take?

The copy itself can take under an hour for a small site and longer for large databases or media libraries. Allow extra time for testing and for DNS propagation, which can run from minutes to a couple of days depending on your TTL and the type of change. Plan the whole project over a few days, not an afternoon.

Will I have downtime when I move my website to a new host?

Not if you do it in the right order. Your old site stays live while you build and test the copy, and only the DNS switch moves visitors. For stores and membership sites, a short maintenance window around the final database sync prevents lost orders and comments.

Do I need to transfer my domain to change hosting providers?

No. Your domain can stay at its current registrar. You only update its DNS settings, either the A record or the nameservers, so it points to the new host. Moving the domain registration is a separate decision.

Should I use a plugin or move a WordPress site manually?

A migration plugin suits small, standard sites. A manual copy of files and database gives you more control and handles large or unusual sites better. Whichever you use, avoid a raw search-and-replace on the database, and use WP-CLI or a purpose-built plugin if URLs must change.

What happens to my email when I change hosts?

Mailboxes hosted on your old server do not move automatically, and old messages stay behind unless you export or copy them first. If you change nameservers, copy every MX record to the new DNS first so incoming mail keeps arriving. Moving email to its own service before the migration keeps the two projects separate.

Similar Posts