TL;DR: Take a full backup of files and database, restore on the new host, update wp-config.php credentials, search-replace URLs if the domain changes, reset permalinks, then switch DNS only after verification.
Migration is a sequence, and doing steps out of order causes downtime and broken sites.
Step 1 Prepare and lower DNS TTL
A day before moving, lower your domain’s TTL so the eventual switch propagates quickly. Take a complete backup of files and database and store it locally, not only on the old server. Note your PHP version, memory limits and custom server rules.
Step 2 Freeze content
Announce a short content freeze or accept that anything published mid-migration may be lost. For busy sites, use maintenance mode during the final copy so the database snapshot is consistent.
Step 3 Set up the destination
Create the database and user on the new host, match or improve the PHP version, and install a matching WordPress version. If your host offers free migration, use it, but still take your own backup and verify independently.
Step 4 Transfer files and database
Use a migration plugin such as Duplicator or All-in-One WP Migration, or move manually by uploading files via FTP and importing the database dump. Manual transfer is more reliable for very large sites where plugin imports hit timeout or size limits.
Step 5 Update configuration
Edit wp-config.php with the new database name, user, password and host. Confirm table prefixes match what was imported.
Step 6 Handle URL changes correctly
If the domain changes, run a proper serialised search-replace rather than a naive SQL replace, which corrupts serialised data. WP-CLI’s search-replace command or a dedicated plugin handles this safely.
Step 7 Verify before switching DNS
Test using a hosts-file override or the host’s temporary URL. Check pages, images, forms, logins, checkout and integrations. Reset permalinks by saving the settings screen, which flushes rewrite rules and fixes stray 404s.
Step 8 Switch DNS and monitor
Point DNS at the new host, confirm SSL issues correctly, and crawl for broken links. Keep the old hosting active for at least two weeks as a fallback, and watch error logs, form submissions and analytics closely for the first few days.