Migrate WordPress Site to New Host Best Proven Way 2026

By Basharat Ali Khan | Last updated: November 3, 2026

Disclosure: The Cloudways link in this post is an affiliate link, so I may earn a commission at no extra cost to you. See my affiliate disclosure.

Moving a WordPress site to a new host feels riskier than it actually is. The fear of downtime, broken links or lost data stops many people from switching hosts, even when their current one is clearly underperforming. Having handled this process on client sites, here is the method I use to migrate WordPress site to new host with minimal downtime.

This guide covers the full process in ten steps, including the details most guides skip: serialized data, local testing, DNS timing, email and SEO checks after the move.

Quick Answer

To migrate WordPress site to new host safely, take a verified backup, set up the new host, copy your files and database, update the URLs correctly, test the site before changing DNS, lower your DNS TTL in advance and then point your domain to the new server. Keep the old host active for several days and check SSL, email and search engine settings afterwards.

What It Takes to Migrate WordPress Site to New Host Safely

The most common worry is “what if something breaks and my site goes down for hours?” With the right approach, your old site stays live the whole time you set up and test the new one. You only point your domain over once everything works. That is why a careful migration usually means minimal downtime, limited to the moment DNS changes take effect.

One exception is worth knowing: if your site takes orders, bookings or comments, anything submitted during the move can be lost. For those sites, plan a short content freeze (see Step 8).

Step 1: Choose Your New Host Before You Start

Do not start the process to migrate WordPress site to new host until you have decided where you are going. If your current host is the problem (slow, unreliable, poor support), choose a host that fits your site instead of jumping to another similar plan. Cloudways is one managed option I recommend, and you can compare others in my guide to WordPress hosting for Pakistan. Also ask whether your new host offers free or assisted migration, since many do.

Step 2: Take a Full Backup of Your Current Site

Before you touch anything, take a complete backup of both files and database.

  • Use a backup plugin or your current host’s backup tool to export a full backup.
  • Download a copy to your own computer, and do not rely only on cloud storage.
  • Check that the backup is not corrupted. A suspiciously small file is a warning sign.

See my UpdraftPlus review if you need a backup plugin.

Step 3: Set Up the New Hosting Environment

On the new host, create the environment before you import anything:

  • Create your account and confirm the server is ready.
  • Note the temporary URL or server IP address the host gives you. You will use it to test.
  • Match or exceed your current PHP version. Check my guide to WordPress 7.0 PHP requirements to pick a good version.
  • Install a fresh WordPress if your migration tool needs one, or leave the environment empty for a full import.

Step 4: Move Your Files and Database

There are three realistic ways to migrate WordPress site to new host:

Method Best for Watch out for
Host’s migration service or tool Beginners Check what is included and when the work is done
Migration plugin (Duplicator, All-in-One WP Migration, a host’s own migrator) Most site owners Upload limits and large sites
Manual (FTP and phpMyAdmin) Developers, large or unusual sites More steps, and URL replacement must be done carefully

For a manual move, upload your files by FTP, export your database from phpMyAdmin and import it into the new host’s database. Then update wp-config.php with the new database name, user and password.

Step 5: Update the Database URLs the Right Way

This step trips people up more than any other. The most common mistake when you migrate WordPress site to new host is changing URLs with a plain find-and-replace in the database. WordPress stores some settings as serialized data, where text lengths are stored next to the text, so a careless replace can corrupt widgets, theme options and builder data.

  • Use a migration plugin’s built-in replace tool, or WP-CLI, which handles serialized data correctly.
  • Try a dry run first to see what would change:
wp search-replace 'http://old-domain.com' 'https://new-domain.com' --all-tables --dry-run

If the output looks right, run the same command without --dry-run. If you tested on a temporary URL first, you will need a second replace when you switch to the final domain, unless the domain stays the same.

Step 6: Test the New Site Before You Change DNS

Before you touch your domain’s DNS, test everything on the new host. If the host gives you a temporary URL, use it. If not, you can test your real domain on the new server by editing the hosts file on your own computer (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts on Mac and Linux). Add a line like this, using the new server’s IP address:

123.45.67.89  yourdomain.com www.yourdomain.com

This makes only your computer see the new server. Remove the line when you are done. While testing, check:

  • Pages load correctly and images display
  • Forms send, and the emails actually arrive
  • Your WooCommerce checkout, if you have one
  • All plugins are active and working
  • Page speed compared with your old host

Step 7: Lower Your DNS TTL in Advance

This is a step most guides skip. TTL (Time To Live) tells other servers how long to remember your DNS record. Lower it to something short, like 300 seconds, at least as long as the old TTL before you switch. If your current TTL is 24 hours, change it a day ahead. Otherwise visitors can keep seeing the old server long after the switch.

Changing an A record is generally faster than changing nameservers, which can take longer to spread. Not every network respects a low TTL, so a few visitors may still reach the old server for a while, which is another reason to keep the old host running.

Step 8: Handle Orders and Comments During the Switch

If your site is a store, a booking site or a membership site, plan the final move for a quiet time and consider a short content freeze:

  • Pause new orders or put the site in maintenance mode while you take the final backup and import it.
  • Or migrate during your lowest traffic hours and re-sync anything submitted in between.
  • Check orders, form entries and comments from the old site once the move is complete.

Step 9: Point Your Domain to the New Host

Once testing confirms everything works:

  1. Update your domain’s DNS (the A record, or the nameservers) to point to the new host.
  2. If you change nameservers, copy all your DNS records to the new DNS first, including MX records for email. If you forget, email can stop working.
  3. Keep your old hosting account active for several days as a safety net, in case you need to roll back.

Step 10: Verify Everything After You Migrate WordPress Site to New Host

After DNS has spread, go through this list:

  • Open the site on several devices and networks.
  • Check SSL. A certificate usually needs the domain to point to the new server first, so it may take a short time to issue. Make sure there are no mixed-content warnings.
  • Check email. If email is hosted with the same provider, confirm it still works.
  • Check your SEO settings. Go to Settings > Reading and make sure “Discourage search engines from indexing this site” is not ticked. This setting is often turned on while testing and forgotten.
  • Resave Settings > Permalinks, and clear all caches, including any CDN.
  • Check Google Search Console for new crawl errors over the next week.
  • Check that scheduled tasks and backups are running on the new host.
  • Watch speed and uptime for the first few days.

Migrate WordPress Site to New Host: Checklist

Step Done
Chosen and set up the new host ☐
Full backup taken and verified ☐
Files and database moved ☐
URLs updated safely (serialized data handled) ☐
Tested before changing DNS ☐
DNS TTL lowered in advance ☐
Orders and forms handled during the switch ☐
Domain pointed to the new host (MX records kept) ☐
SSL issued and checked ☐
“Discourage search engines” is off ☐
Old host kept active for several days ☐

Frequently Asked Questions

Will my site have downtime when I migrate WordPress site to new host?

With this method, your old site stays live while you set up and test the new one. The only moment of change is the DNS switch, which is quick with a lowered TTL, though a few visitors may reach the old server for a short time. Sites that take orders need extra care (Step 8).

Do I need to migrate my email too?

If your email is hosted separately from your website, a hosting migration does not affect it as long as you keep your MX records. If it is bundled with your old hosting account, you will need to move it separately.

What is the most common thing that goes wrong?

Updating database URLs incorrectly, which causes broken images, mixed content warnings, redirect loops or lost settings. Use a tool that handles serialized data (Step 5).

How long does it take to migrate WordPress site to new host?

For a standard site, the technical move often takes one to three hours. Most of the waiting is DNS spread, which a lowered TTL reduces. Large sites and stores take longer.

Will migrating affect my SEO?

Not if the URLs stay the same and the site is not accidentally set to block search engines. Check the Reading setting, test your redirects and watch Search Console afterwards.

Should I cancel my old hosting right away?

No. Keep it for several days, until you have confirmed that the site, email, SSL and forms all work on the new host.

Final Thoughts

To migrate WordPress site to new host without stress, test everything before you touch DNS, lower your TTL early, handle URLs and orders carefully and keep the old host as a safety net. If you would rather not handle it yourself, get in touch here and I will manage the migration for you, or see my WordPress services.


About the author
Basharat Ali Khan is a WordPress developer in Gilgit, Pakistan with 8+ years of experience building custom plugins, Elementor sites and WooCommerce stores.
LinkedIn | WordPress.org profile

Related: Best WordPress Hosting Pakistan | UpdraftPlus Review | WordPress Website Maintenance Service 

Leave a Reply

Your email address will not be published. Required fields are marked *