Moving a WordPress site between hosts has the reputation of a dental appointment: necessary, unpleasant, and best postponed. That reputation is mostly deserved, but not because the work is technically hard. It is deserved because most migrations go wrong in the same three places, and those places are rarely the ones people worry about. The database export they fret over almost always works. The thing that breaks is the email inbox nobody remembered was attached to the old server, or the DNS record that got changed on a Friday.
What follows is the sequence that actually holds up under pressure, written for the person who has one site, a client waiting, and no appetite for a weekend of debugging. The order matters more than the tools.
Inventory the old host before touching anything
Open the old hosting control panel and take screenshots of every page. The DNS zone editor. The cron jobs. The SSL certificate status. The PHP version. The list of email accounts, including the forwarders and the catch-all. This sounds like busywork until the moment a contact form stops delivering and nobody can remember which forwarder pointed where.
A surprising number of WordPress sites depend on small things that live only on the old server: a scheduled backup script, an .htaccess rule blocking a bad bot, a subdomain running a staging copy that the marketing team forgot about. The migration plan should list all of them. Anything not on the list will be discovered later, at the worst time.
Email is the single most common casualty. Many small hosts bundle mail with web hosting, and switching web hosts silently kills the inboxes. If mail matters, either keep the old host alive for email alone or move to a dedicated mail provider before the cutover. Decide this on day one.
The staging site is the whole trick
Serious hosts give new customers a temporary URL, something like a string of numbers or a hostname that resolves before DNS changes. Use it. Build the entire site there, on the new server, while the live site keeps serving visitors from the old one. The public sees nothing during this phase, which removes most of the stress.
The migration itself runs through a plugin such as All-in-One WP Migration, Duplicator, or WP Migrate. Each has quirks. All-in-One hits upload limits on cheap hosts, so the file may need to be split or the limit raised. Duplicator produces an installer script that handles the database and the serialized data inside it. WP Migrate is the choice for developers who want to push and pull specific tables.
The serialized data point deserves a sentence. WordPress stores some settings as serialized PHP arrays, and those arrays encode the site's URL as a string length. A plain find-and-replace on the database corrupts them, and the symptom is a white screen or a widget that quietly refuses to render. Good migration tools handle serialization; a manual SQL replace often does not.
Files, database, and the parts plugins forget
A complete move means four things travel: the wp-content folder (themes, plugins, uploads), the database, the wp-config.php file with its credentials, and any custom files outside the WordPress install, such as a hand-written robots.txt or a verification file for a search console. The last category is small and easy to miss.
Uploads deserve special attention on large sites. A photography blog with ten years of images can carry tens of gigabytes, and a plugin export may time out or produce a file too large to import. In that case, copy wp-content/uploads over SFTP or rsync separately and let the migration tool handle only the database and the code. It is slower to set up and far more reliable.
On the new server, confirm the PHP version matches or exceeds the old one before importing. A theme built for PHP 7.4 will throw deprecation notices on 8.3, and those notices can break the admin interface at exactly the moment someone needs it. Match first, upgrade later, in a planned step.
Fix the URLs on staging, not after launch
While the site sits on the temporary URL, every internal link and image path may still point to the old domain or to the staging address. The migration tool usually rewrites the domain as part of the import. Verify it by clicking through the staging site: the homepage, a blog post, a page with images, and the admin dashboard. Broken media is the classic tell that the rewrite missed something.
Also test the things visitors actually do. Submit the contact form and confirm the email arrives. Run a test order if the site sells anything, using a sandbox payment mode. Log in as a subscriber and check that the account still works. These five minutes catch more problems than an hour of staring at the dashboard.
Lower the DNS time-to-live a day early
DNS changes propagate at the speed of the record's TTL, the time-to-live value. A record set to 3600 seconds can take an hour to update worldwide; one set to 86400 can take a full day. The day before the switch, log into the domain registrar and drop the TTL on the A record (and the CNAME for www) to 300 seconds. Then wait for the old value to expire, which itself takes up to the old TTL.
This single step turns a day of anxious waiting into a few minutes of uncertainty. Skipping it is the most common cause of the dreaded "the site is down for some people and fine for others" afternoon.
The cutover window and what to watch
Pick a low-traffic hour and put the old site into maintenance mode, or at least stop accepting new posts and orders. Export the database a final time, because anything written since the staging import is now missing. Import that delta, re-run the URL check, and then point the A record at the new server's IP address.
From that moment, watch three things. The site itself, loaded in a private browser window to avoid cache. The email, if mail moved too. And the error log on the new server, which will announce missing files and permission problems within minutes. A 500 error at this stage almost always means a file permission is wrong or a required PHP extension is absent, both quick fixes.
Keep the old host active and paid for at least two weeks. It is the rollback plan. If the new server misbehaves, pointing DNS back takes minutes, and the old site is still there, intact.
Search Console, redirects, and the things that outlive the move
After DNS settles, verify the new server in Google Search Console and submit the sitemap again. If the domain stayed the same, rankings usually hold. If the domain changed, 301 redirects from every old URL to its new counterpart are mandatory, and they need to be tested with a redirect checker rather than assumed.
SSL is the other quiet failure. Many hosts issue a free Let's Encrypt certificate automatically, but the issuance can lag behind DNS by an hour or more. If the browser shows a warning after the switch, the certificate may simply not have been requested yet. Force the issue in the host's panel rather than waiting.
Finally, delete the staging site and its temporary URL once the live site is confirmed healthy. Left in place, a staging copy becomes a forgotten duplicate that search engines may index and attackers may probe. The migration is finished when the staging environment is gone, the old host is cancelled, and the backups on the new server have run at least once on their own schedule.
A clean move leaves no trace of itself. The site loads, the forms deliver, the certificate is valid, and the person who commissioned the work never has a reason to think about hosting again until the next renewal invoice arrives. That silence is the deliverable.
