Website Migration Runbook: Pre-Cutover Checks, DNS Changes, and Rollback Steps
website migrationhosting transferDNS cutoverdeployment workflowrollback planning

Website Migration Runbook: Pre-Cutover Checks, DNS Changes, and Rollback Steps

SSmart365 Editorial Team
2026-11-29
7 min read

A reusable website migration runbook covering backups, staging, DNS cutover, validation, and rollback when moving to new hosting.

A website migration runbook reduces avoidable downtime by turning a host move into a controlled sequence of inventory, backup, staging, DNS, validation, and rollback tasks. Use this checklist before moving a WordPress site, application, store, or static website to new web hosting.

Overview

Moving a website to a new host is more than copying files. A successful migration also preserves the database, runtime configuration, URLs, redirects, certificates, email records, scheduled jobs, and access controls that support the site. The safest approach is to build the new environment first, test it without changing public DNS, and keep the old hosting account available until the cutover has been verified.

This runbook assumes you control the domain registration and DNS management, have administrative access to the current and new hosting accounts, and can schedule a short period for final synchronization. Exact control-panel labels, supported PHP or other runtime versions, backup tools, and DNS propagation behavior vary by provider, so confirm the current instructions for both platforms before starting.

For related preparation, review the website backup and restore strategy and the website hosting security checklist. They cover recovery testing, access control, SSL, and other controls that should travel with the site.

Migration phases

  1. Inventory: document the site, domain, services, dependencies, and current settings.
  2. Prepare: provision the destination, configure the runtime, and create tested backups.
  3. Stage: transfer files and data, then test the site using a temporary URL or local hosts-file override.
  4. Cut over: reduce DNS TTL where appropriate, complete the final sync, and update DNS records.
  5. Verify and close: test public traffic, email, certificates, monitoring, and backups before retiring the old host.

Checklist by scenario

1. Before moving any site

  • Record the domain names, subdomains, aliases, canonical hostname, and any parked or redirected domains.
  • List every service that depends on the domain: website, email, transactional mail, APIs, cron jobs, webhooks, analytics, payment integrations, storage, and monitoring.
  • Export or document DNS records, including A, AAAA, CNAME, MX, TXT, and any verification records. Note which records are managed at the registrar, a DNS provider, or the hosting control panel.
  • Check the domain registration account, transfer lock, nameserver settings, renewal status, and recovery contacts. Keep hosting migration separate from domain transfer unless there is a clear reason to combine them. The domain registration and renewal guide provides a separate checklist for that work.
  • Measure the current environment: disk usage, database size, inode usage, bandwidth patterns, runtime version, web server rules, PHP extensions or equivalent dependencies, and scheduled tasks.
  • Confirm the destination has enough storage, memory, CPU capacity, database support, runtime versions, SSL support, and access for the application.

2. Backups and access

  • Create a full, restorable backup of website files, databases, configuration files, uploaded media, and server-level rules that the application needs.
  • Download a copy outside the current host and verify that the archive can be opened. For databases, inspect the export and confirm it is not empty or truncated.
  • Record administrator credentials, SSH or SFTP keys, database users, control-panel access, deployment tokens, API keys, and recovery contacts. Do not place secrets in a publicly accessible document.
  • Confirm the backup includes files outside the usual web root, such as environment files, private uploads, certificates where appropriate, and custom scripts.
  • Define who can approve the cutover and who can execute a rollback if the migration is performed by more than one person.

3. Build and test the destination

  • Create the site, database, database user, document root, runtime version, extensions, scheduled jobs, and server rules on the new hosting platform.
  • Transfer files in a way that preserves permissions, symbolic links where supported, hidden files, timestamps if relevant, and directory structure.
  • Import the database and update only the destination configuration. Keep production credentials and staging credentials clearly separated.
  • Test the site privately through a staging URL, temporary hostname, or local hosts-file entry. Avoid changing public DNS until core tests pass.
  • Check login, content editing, forms, search, checkout or other transaction flows, file uploads, image processing, API calls, caching, and scheduled tasks.
  • Confirm URL handling. Test the preferred hostname, HTTP-to-HTTPS behavior, trailing-slash rules, canonical URLs, existing redirects, and important 404 responses.
  • Install the SSL certificate for every required hostname and test the site without bypassing certificate warnings.
  • For a static site or Git-based deployment, verify the repository, build command, output directory, environment variables, redirects, headers, and rollback artifact. See the static website deployment guide for a deployment-focused checklist.

4. DNS cutover

  • At least one normal DNS caching period before cutover, lower the TTL for records you expect to change, if the DNS provider permits it. Do not assume that lower TTL forces every resolver to refresh immediately.
  • Copy all required records to the destination DNS service before changing nameservers or address records. Preserve email records unless email is moving too.
  • Decide whether the change is an A or AAAA record update, a CNAME update, a nameserver change, or a combination. Record the old and new values.
  • Freeze content changes during the final synchronization window, or record them so the last database and file sync includes them.
  • Complete the final file and database sync, put the application into maintenance mode if needed, and then apply the DNS change.
  • Keep the old site available and writable only as long as your runbook requires. Once the final sync is complete, prevent conflicting updates on the old environment.

5. After cutover

  • Test the site from more than one network or resolver and check both the root domain and important subdomains.
  • Review HTTP status codes, application logs, web server logs, PHP or runtime errors, database errors, and resource usage.
  • Submit test forms, complete a representative purchase or account flow where applicable, and verify that notifications arrive.
  • Confirm email delivery, MX records, SPF, DKIM, DMARC, and mailbox access if mail is part of the migration. Use the business email hosting setup guide for the mail-specific checks.
  • Verify monitoring, uptime checks, analytics, search-console verification, webhooks, external integrations, and scheduled jobs.
  • Take a fresh backup on the new host and confirm the restore procedure is still documented.

Validation table

AreaPass conditionIf it fails
DNSExpected records resolve to the intended destination.Compare authoritative records, cached results, and the old/new address values.
HTTPSRequired hostnames load without certificate or mixed-content errors.Check certificate coverage, redirects, proxy settings, and asset URLs.
ApplicationPages, logins, forms, uploads, and key workflows work.Review runtime compatibility, environment variables, permissions, and logs.
DatabaseRecent content is present and writes succeed.Check credentials, host permissions, character sets, and final-sync timing.
EmailInbound and outbound test messages succeed.Compare MX and authentication records; confirm mail was not unintentionally redirected.
PerformancePages respond normally without resource or timeout errors.Inspect CPU, memory, storage, caching, database queries, and limits.

What to double-check

Runtime compatibility: A new host may use a different PHP, Node.js, Python, database, web server, or extension configuration. Confirm the application and plugins support the selected version before switching. Do not treat a successful homepage load as proof that every feature works.

Configuration and secrets: Search for hard-coded paths, old hostnames, database endpoints, API URLs, mail servers, and environment variables. Make sure production secrets were transferred securely and that staging values cannot affect live users.

Rewrite and redirect behavior: Test representative old URLs, not just the homepage. Preserve important redirects, media paths, language folders, and canonical rules. A migration that loads pages but changes URL behavior can still create operational and search problems.

Email independence: Website hosting and email hosting may be separate. Changing nameservers or replacing DNS records can interrupt mail even when the website is healthy. Compare the complete DNS export before and after the change.

Rollback criteria: Decide in advance what triggers a rollback, such as failed transactions, persistent database errors, broken authentication, missing email, invalid certificates, or unacceptable error rates. A rollback should restore the previous DNS values and, where necessary, put the old application back into its known-good state.

Common mistakes

  • Changing DNS before testing the destination privately.
  • Copying only the visible web files while omitting the database, hidden files, uploads, cron jobs, or server rules.
  • Forgetting DNS records used for email, domain verification, APIs, or third-party services.
  • Assuming a control-panel migration copies every custom configuration automatically.
  • Failing to run a final database sync after the staging copy.
  • Deleting the old hosting account immediately after DNS changes.
  • Testing only from the administrator's browser or a single network.
  • Using a rollback plan that was never tested or that lacks the previous DNS values.

If the destination is a VPS or cloud server, add operating-system updates, firewall rules, SSH access, service supervision, backups, and monitoring to the runbook. The VPS hosting maintenance checklist can be used after the migration handoff.

When to revisit

Use this runbook before every host change, redesign, domain move, disaster-recovery rehearsal, or major platform upgrade. Revisit it before seasonal planning cycles when traffic, staffing, or release schedules change. It should also be reviewed whenever the hosting control panel, supported runtime versions, deployment workflow, DNS provider, backup method, or monitoring tools change.

As a maintenance practice, review the commands, screenshots, provider instructions, DNS timing assumptions, and validation tools at least every six months or after a major hosting-platform change. Remove obsolete steps and add findings from the last migration. Before the next cutover, assign owners, set a maintenance window, export current DNS, verify the latest backup, test the destination, and write down the exact rollback decision point. That preparation turns a stressful hosting transfer into a repeatable deployment process.

Related Topics

#website migration#hosting transfer#DNS cutover#deployment workflow#rollback planning
S

Smart365 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.