Moving a website to a new host does not have to mean prolonged downtime or missing data. This website migration guide gives you a platform-neutral process for backing up files, databases, email, and DNS; testing the new account; planning the cutover; checking search visibility; and keeping a rollback option available if something fails.
Overview
A hosting migration is the controlled transfer of a website from one server or hosting account to another. The work may involve website files, databases, domain settings, SSL certificates, email accounts, scheduled tasks, server-side software, and third-party integrations. The exact steps depend on your platform, but the risks are broadly similar: an incomplete backup, incompatible software, incorrect DNS records, broken permissions, or a rushed domain change.
The safest approach is to separate the migration into three stages:
- Prepare: document the current site, confirm the new host supports its requirements, and create tested backups.
- Build and test: copy the site to the new account while the old site remains available.
- Cut over and verify: change DNS or the relevant domain settings, monitor the transition, and keep the old account until the new site is confirmed stable.
This process can be used for a small HTML site, a WordPress installation, a cPanel account, or a larger application. Before starting, record your current PHP version, database type and version where available, enabled extensions, cron jobs, redirects, DNS records, email accounts, and any external services connected to the site. A short inventory prevents you from discovering an important dependency after the old hosting account has been cancelled.
Also check the provider's migration instructions. Control-panel names and automated import tools change over time, so treat the host's current documentation as a supplement to this checklist rather than assuming every dashboard uses the same labels.
What to track
Files, databases, and configuration
Back up the complete website before making changes. For a traditional site, this normally includes the document root, configuration files, uploaded media, and any files stored outside the public web directory. For WordPress, include the WordPress files and database, especially the wp-content directory and its uploads, plugins, themes, and configuration. Export the database in a format supported by the new server and keep an untouched copy away from both hosting accounts.
Write down the database name, username, host value, table prefix, and connection settings without publishing passwords in a shared document. Confirm that the new host supports the application's required PHP version, database engine, extensions, storage permissions, and rewrite rules. If the new environment differs, test the site before changing DNS.
Email and DNS
Website files and email are separate services. List every mailbox, forwarder, autoresponder, mailing-list address, and email application that depends on the current provider. Record the existing DNS records, including A or AAAA records, CNAME records, MX records, TXT verification records, and any subdomains used for staging, payments, analytics, or APIs. Do not assume that copying a website also copies email.
If email will remain with the current provider, preserve its MX and related authentication records. If email will move, plan the mailbox transfer separately and allow time to copy messages. Keep the old email service active until the new mailboxes and DNS settings have been tested.
Performance, security, and search signals
Capture a baseline before migration. Check representative pages, forms, logins, checkout steps, images, downloads, redirects, robots.txt, XML sitemaps, canonical tags, and HTTPS behavior. Note current search landing pages and important URLs so you can compare them afterward. A host change alone should not require a new domain or a blanket redirect, but a domain change or URL restructuring requires carefully mapped permanent redirects from each old URL to its closest equivalent.
Confirm that SSL is installed on the new account and that HTTP requests redirect correctly to HTTPS if that is your chosen setup. Review file permissions, administrator accounts, firewall settings, malware scanning, and backup schedules after the copy. For a broader pre-launch review, use the website launch checklist for SEO and security.
Choose the migration method
| Method | Best fit | What to verify |
|---|---|---|
| Manual transfer | Static sites, custom applications, or unusual server setups | Files, database import, configuration, permissions, cron jobs, and rewrite rules |
| cPanel transfer or backup restore | Sites moving between compatible cPanel accounts | Account limits, PHP settings, databases, mailboxes, DNS, and SSL |
| WordPress migration tool | Standard WordPress sites with supported plugins | Upload limits, serialized data, plugin conflicts, URLs, and administrator access |
| Host-assisted migration | Owners who want help with a supported, documented setup | Scope, exclusions, timing, backup responsibility, and final testing |
For detailed backup planning, see the WordPress and cPanel backup strategy. A migration copy is not a substitute for a continuing backup system.
Cadence and checkpoints
Use the following timeline as a practical starting point. Adjust it for the size of the site, DNS settings, email volume, and the amount of testing required.
Several days before cutover
- Confirm the new hosting account, domain access, database credentials, PHP settings, storage, and SSL options.
- Lower DNS time-to-live values if your DNS provider allows it and if you understand the provider's current settings. This may help resolvers obtain the new value sooner, but it does not guarantee an immediate switch.
- Back up files, databases, email, and DNS documentation. Test that the backup can be opened or restored.
- Pause nonessential site changes, plugin updates, content publishing, and large database activity during the final copy window.
During the initial copy
- Create the database and user on the new host, then import the database using the provider's supported tool.
- Upload files and update configuration values to match the new database and server environment.
- Recreate cron jobs, subdomains, redirects, scheduled tasks, environment variables, and third-party keys.
- Use a temporary preview method, hosts-file test, staging URL, or provider preview feature where available. Avoid indexing a temporary copy.
At cutover
Choose a low-traffic period when you can monitor the site. If the database changes frequently, place the site in maintenance mode briefly or perform a final database export and import immediately before switching DNS. Update only the required DNS records, then confirm that the domain points to the new server. If email is staying elsewhere, check that MX records were not unintentionally replaced.
After cutover
Test the homepage and several deep URLs from different networks or devices. Submit forms, log in, upload a file, complete a representative purchase if relevant, test search, inspect images, and check redirects. Review server error logs, application logs, uptime monitoring, analytics, and search-console coverage where applicable. Keep the old hosting account available until the new site and email have remained stable through a reasonable observation period.
How to interpret changes
A short period of mixed DNS results can occur because different users and networks may continue using cached records. Do not immediately revert solely because one device still reaches the old server. First check the DNS response, the authoritative nameservers, the record value, and whether the browser or local network is caching an older result.
Separate DNS problems from application problems. If the domain reaches the new server but displays a database connection error, blank page, redirect loop, or missing images, the issue is likely within the application or server configuration. Check database credentials, document-root settings, PHP compatibility, permissions, rewrite rules, and absolute URLs. If only HTTPS fails, inspect the certificate, domain coverage, web-server binding, and forced HTTPS rules.
Watch for these migration signals:
- Higher error rates: review logs and identify whether errors affect all visitors or one URL, device, or region.
- Slower pages: compare server response time, caching, database load, image delivery, and PHP worker limits with the old environment.
- Missing email: verify MX, SPF, DKIM, mailbox creation, forwarding, and spam filtering separately from website DNS.
- Search visibility changes: check robots.txt, canonical tags, status codes, sitemaps, redirects, and accidental noindex directives before assuming the host itself caused the change.
- Lost content: compare recent uploads and database records against the final backup. A second copy may be needed if content changed during migration.
If the new site is unstable, use the rollback plan: restore the relevant DNS records to the old destination, keep the old account online, preserve logs from both environments, and correct the underlying issue before attempting another cutover. Do not delete the old files while troubleshooting.
When to revisit
Review this migration checklist before every hosting move, domain change, renewal decision, or major platform change. A monthly or quarterly audit is also useful for sites that depend on scheduled tasks, online payments, customer accounts, or frequent content updates. Hosting dashboards, PHP versions, backup tools, SSL workflows, and migration utilities can change, so confirm current procedures shortly before the transfer rather than relying on an old screenshot or saved instruction.
Revisit the plan immediately when you change the domain, redesign URL paths, move email, add a subdomain, switch from shared hosting to a VPS, or introduce a staging environment. For a scaling site, compare the new environment with the requirements in the shared hosting versus VPS upgrade guide. If you are approaching renewal, review total cost and switching requirements with the web hosting renewal checklist.
Before closing the old account, complete this final sign-off:
- Confirm the domain, website, SSL certificate, email, forms, databases, and scheduled jobs work on the new host.
- Compare important URLs and redirects with the pre-migration inventory.
- Download or verify an independent backup of the new site.
- Check analytics, monitoring, logs, and search tools for unexpected changes.
- Document the new host, DNS provider, renewal dates, recovery contacts, and rollback notes.
- Only then cancel the old account, and retain migration records according to your own operational and legal requirements.
A careful migration is less about a single transfer command and more about controlled preparation, observable checkpoints, and a tested way back. Keep this checklist with your site records so the next move starts with evidence rather than guesswork.