How to Migrate a Website to New Hosting Without Downtime
website migrationhostingDNSWordPressdeveloper guide

How to Migrate a Website to New Hosting Without Downtime

mmodest.cloud Editorial Team
2026-11-29
7 min read

Use this staged checklist to move a website, database, email, and DNS to new hosting while minimizing downtime and protecting SEO.

Moving a website to new hosting does not have to mean accepting an outage. This reusable migration checklist explains how to copy files and databases, prepare DNS, preserve email and search visibility, test the new environment, and keep a tested rollback path if something fails.

Overview

A website migration is more than uploading files to a different server. A complete move may include the application, database, uploads, scheduled jobs, domain records, email services, SSL certificates, runtime versions, and monitoring. Treating each part as a separate workstream makes the migration easier to test and reduces the chance of an avoidable outage.

The safest general method is a staged migration:

  1. Inventory the current site and record its dependencies.
  2. Lower DNS time to live (TTL) before the planned change.
  3. Prepare the new hosting account without changing public DNS.
  4. Copy the site, database, configuration, and email-related records.
  5. Test the new site using a temporary hostname, hosts-file entry, or provider preview URL.
  6. Freeze or synchronize changes, then switch DNS during a quiet period.
  7. Monitor both hosts and keep the old environment available until the migration is confirmed.

This approach applies to a custom application, a content management system, or a WordPress site. The exact control-panel labels and deployment commands vary by provider, so confirm current instructions in the new host's documentation before making production changes. For broader preparation, use the website backup and restore checklist and review the decision points in Shared Hosting vs Cloud Hosting.

Checklist by scenario

Before moving any site

  • Record the domain registrar, DNS provider, current host, new host, and administrative contacts.
  • List every hostname in use, such as the root domain, www, an admin subdomain, API endpoints, staging hosts, and mail hosts.
  • Document DNS records, including A, AAAA, CNAME, MX, TXT, CAA, and any verification records.
  • Confirm the new host supports the required operating system, PHP or other runtime version, extensions, database engine, web server behavior, and storage.
  • Check how SSL certificates, cron jobs, environment variables, queues, file permissions, and outbound email will be configured.
  • Create a full backup of files and databases. Store at least one copy outside the current hosting account, and test that the archive can be opened or restored.
  • Write down the current application version, enabled plugins or packages, redirect rules, and key integration credentials without placing secrets in a public document.

DNS migration plan

Several days before the switch, reduce the TTL on records you expect to change, subject to the DNS provider's supported range. A shorter TTL can help resolvers request updated answers sooner, but it cannot force every cached answer to expire immediately. Keep the authoritative nameservers unchanged unless you are deliberately moving DNS management as well.

Prepare the new A, AAAA, or CNAME targets in advance. If the domain uses email, do not replace MX records casually. Preserve the existing mail destination and authentication records unless email is moving too. The DNS change management checklist provides a useful record-by-record planning format.

Moving a static site

  1. Copy the document root and any files served from separate storage locations.
  2. Recreate redirects, custom error pages, cache rules, security headers, and compression settings.
  3. Set the correct domain and document root in the new control panel or web-server configuration.
  4. Test links, forms, images, downloads, canonical URLs, and both HTTP-to-HTTPS and non-www-to-www behavior.
  5. Switch the relevant DNS record only after the new host serves the complete site.

Moving a database-backed or WordPress site

  1. Put the site into maintenance mode or pause content changes for the final synchronization window.
  2. Export the database using the current host's backup tool or a command appropriate to the database engine. For example, a MySQL-compatible export may use mysqldump -u USER -p DATABASE > backup.sql; confirm the syntax and permissions for your environment.
  3. Copy the application files, including uploads and other user-generated content.
  4. Create the database and user on the new host, then import the export. Update the application configuration with the new database host, name, username, password, and port.
  5. Match the required runtime version and extensions before troubleshooting application errors.
  6. Test administrator login, publishing, media uploads, search, forms, scheduled tasks, caching, and third-party integrations.
  7. For WordPress, verify the site URL, permalink behavior, wp-config.php settings, file permissions, plugin compatibility, and the generated sitemap.

If content continues changing during the copy, take a final database export immediately before the DNS switch and repeat the import or synchronization. A successful first copy is not necessarily the most current copy.

Moving email or preserving existing email

Decide explicitly whether email is staying with the current provider. If it is staying, preserve MX, SPF, DKIM, and DMARC records and avoid assuming that website DNS changes should alter mail routing. If email is moving, document every mailbox, alias, forwarding rule, archive, and authentication record; copy messages using the providers' supported migration process; and test sending and receiving from more than one network. See the SPF, DKIM, and DMARC guide before changing mail records.

Final cutover and rollback

Choose a low-traffic period and record the exact change time. Take a final backup, stop writes where practical, confirm the new host is ready, and update only the required DNS records. Keep the old host online and unchanged while propagation proceeds.

A simple rollback template should include:

  • Previous DNS values and the time they were captured.
  • The person authorized to reverse the change.
  • Conditions that trigger rollback, such as failed checkout, missing uploads, database errors, or broken email.
  • The last known-good backup and restoration steps.
  • The monitoring window and the next decision point.

What to double-check

Use more than one test location because DNS caches and network paths differ. A DNS propagation checker can show differing answers, but it is evidence for investigation rather than a guarantee that every resolver has updated.

AreaTestExpected result
DNSQuery the root domain, www, and important subdomains from several networks.Each hostname resolves to the intended service.
HTTPSOpen HTTP and HTTPS URLs, including deep links.Valid certificate, correct redirect, and no mixed-content warnings.
ApplicationLog in, submit forms, publish content, and upload a file.Actions complete and data persists after a fresh login.
DatabaseReview logs and test representative records.No connection errors, missing tables, or encoding problems.
EmailSend and receive test messages if mail is affected.Messages arrive, authentication passes, and replies work.
SEOCheck redirects, canonical tags, robots.txt, sitemap, and status codes.Important URLs remain indexable and old URLs resolve appropriately.

Also compare response behavior before and after the move. Check server error logs, application logs, scheduled jobs, background workers, webhooks, payment callbacks, analytics collection, and uptime alerts. The SSL certificate guide can help isolate certificate and HTTPS errors.

Common mistakes

  • Changing nameservers and website records at the same time: Separate the DNS-provider move from the hosting move when possible. Fewer simultaneous changes make diagnosis easier.
  • Forgetting hidden dependencies: Inventory cron jobs, external APIs, webhooks, object storage, image processing, queues, and IP allowlists.
  • Copying files but not the latest database: A stale database can remove recent orders, posts, accounts, or form submissions.
  • Assuming DNS controls email automatically: Website hosting and mail hosting may be separate services. Preserve and test mail records deliberately.
  • Testing only the homepage: Deep links, login flows, forms, downloads, redirects, and admin functions often reveal migration defects.
  • Deleting the old host immediately: Retain the old environment, backups, and DNS notes until logs and user reports confirm stability.
  • Ignoring runtime differences: A new PHP, Node.js, database, or web-server version may expose compatibility issues. Test versions before cutover rather than after.

When to revisit

Reuse this checklist before every hosting migration, major platform change, staging-to-production release, or emergency move. Revisit it before seasonal planning cycles when traffic, transactions, or support volume may be higher than usual. Update the provider-specific steps whenever a control panel, deployment tool, runtime, backup method, or DNS interface changes.

After migration, schedule a short review: confirm backups run on the new host, test a restore, verify certificate renewal, inspect email authentication, and remove temporary access or staging records. Keep the final DNS inventory and rollback notes with the site's operational documentation. For sites with multiple domains, the domain portfolio checklist can help prevent an overlooked hostname or renewal dependency.

Next action: create a migration worksheet for one site today. Record its DNS records, dependencies, backup location, runtime requirements, test URLs, cutover time, and rollback trigger before purchasing or configuring the new hosting plan.

Related Topics

#website migration#hosting#DNS#WordPress#developer guide
m

modest.cloud Editorial Team

Technical Hosting Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.