Moving a WordPress site to new hosting sounds risky, but done in the right order, visitors never notice. The trick is simple: build the new copy completely, test it privately, and only then switch the domain. This guide walks through the full process, including the parts people forget, such as email, DNS timing and SEO.
Before you start
- Do not cancel the old hosting yet. Keep it running until the move is confirmed.
- Pick a quiet time for the DNS switch, away from sales campaigns.
- List what lives on the old host: the website, email accounts, cron jobs, subdomains, SSL and any custom configuration.
- Know where your DNS is managed. It may be at the domain registrar, the old host or a service such as Cloudflare. You will need access.
Step 1: Back up everything
Take a full backup of the WordPress files and the database, and download a copy to your own computer. This is your safety net and the source for the migration. See how often to back up.
Step 2: Lower your DNS TTL
At least a day before the switch, set the TTL (time to live) on your domain's A record to a low value such as 300 seconds. This makes the final DNS change take effect quickly, so visitors reach the new server within minutes instead of hours. It is a small step that makes a big difference.
Step 3: Prepare the new hosting
Set up the new account, add the domain, and create an empty database and user. If your new host runs cPanel, this takes a few minutes. Use a current PHP version that your theme and plugins support.
Step 4: Copy files and database
- Upload the WordPress files to the new account, or use a migration plugin or cPanel transfer tool.
- Import the database dump into the new database.
- Edit
wp-config.phpwith the new database name, user and password. - Copy any files outside the WordPress folder you rely on, such as custom
.htaccessrules.
Step 5: Test on the new server before switching
Preview the new copy without changing the real DNS, either through a temporary URL or by editing the hosts file on your computer so your own browser reaches the new server for your domain name. Check:
- The homepage and several inner pages load correctly.
- Images and media appear.
- Forms send email.
- Admin login works, and you can save a post.
- If it is a store, test a cart and checkout in test mode.
- HTTPS works with no mixed-content warnings.
Step 6: Freeze changes, then do a final sync
If your site changes frequently (orders, comments, new posts), pause edits shortly before the switch. Take a fresh database copy, import it on the new server, and confirm that recent content is present. For stores, do this during a low-traffic window so no orders are lost between copies.
Step 7: Switch DNS
Update the A record (and any other relevant records) to the new server's IP, or change the nameservers if you are moving DNS as well. Because you lowered the TTL earlier, most visitors will see the new server within minutes. The old server stays live, so those who have not yet picked up the change still see a working site.
Step 8: Handle email carefully
Email is the part most migrations break. Before the switch, make sure mailboxes exist on the new host, and plan how existing messages will move across, using an IMAP copy or your provider's tool. Check that MX records, SPF and DKIM are set correctly after the change. If you use email hosted elsewhere, keep the MX records pointing there.
Step 9: Verify and monitor
- Check the site from a mobile network as well as your Wi-Fi.
- Test forms, logins, payments and scheduled tasks.
- Re-issue the SSL certificate if needed.
- Submit the sitemap again in Google Search Console and watch for crawl errors.
- Check that backups are running on the new host.
Step 10: Retire the old host, later
Leave the old account untouched for one to two weeks, then cancel it. Do not delete anything until you have confirmed the new site is stable and email is flowing.
Common problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| "Error establishing a database connection" | Wrong credentials in wp-config.php | Re-check name, user, password and host |
| Images missing or broken | Files not copied, or wrong paths | Re-upload the media folder; search and replace URLs |
| Mixed-content warnings | Old http:// links in the database | Run a search-and-replace to https:// |
| Site still shows the old host | DNS not yet updated for you | Wait for propagation; flush local DNS cache |
| Email stopped | MX records changed or mailboxes missing | Restore MX records; create mailboxes |
| Rankings dip after the move | URLs changed or downtime | Keep URLs identical; fix redirects; resubmit sitemap |
Do it yourself or let us do it?
A single brochure site is a manageable weekend job. Stores, multisite installs and sites with business email are where small mistakes turn into lost orders. We offer free website migration when you switch to our WordPress hosting, and handle the whole process, including DNS timing and testing.
Frequently asked questions
How long does a migration take?
The copy itself is often a few hours for a typical site. The DNS change takes minutes to a day to be seen everywhere, depending on TTL.
Will my SEO be affected?
Not if the URLs stay identical, the site stays online and your redirects and sitemap are intact.
Can I migrate without access to my old host's control panel?
Often yes, with FTP and database credentials, or a WordPress migration plugin. Ask your old host for a backup if you are locked out.
Do I need to move the domain as well?
No. Hosting and domain are independent. See how to transfer a domain if you want to move that too.