Moving a WordPress site to a new host sounds risky, and for good reason. A careless move can cause downtime, broken pages, lost emails, and drops in search traffic. Yet people migrate all the time, whether to get better speed, lower renewal costs, stronger support, or room to grow.
Done carefully, a migration is routine. The key is to copy everything first, test the new site before anyone sees it, and switch the domain only when you are sure all is well. Visitors should notice nothing at all.
In this guide, you will learn How to Migrate a WordPress Site to a New Host, covering preparation, the main migration methods, testing, the DNS switch, and the checks to run afterwards.
Quick Answer
First, back up your entire site, including files and the database. Then copy it to the new host using either the new host’s free migration tool, a migration plugin, or a manual transfer.
Test the copied site on the new server before changing your domain, using a temporary address or a hosts file entry. Fix any problems while the live site is still running on the old host.
When you are happy, update your domain’s DNS settings to point to the new host. Keep the old hosting active for several days in case of problems.
Finally, check your pages, forms, SSL certificate, email, and search settings.
Why People Migrate
- The site is slow and the current plan cannot handle traffic
- Renewal prices rose beyond what the service is worth
- Support has been poor or slow to respond
- The site has grown and needs more resources
- The business wants better security or backups
- A different data centre location would be closer to visitors
Before moving, make sure the problem is really the host. Sometimes heavy plugins or large images cause slowness, and fixing them costs far less than switching providers.
How to Migrate a WordPress Site to a New Host
Step 1: Prepare Before You Touch Anything
Checklist
- Choose and buy the new hosting plan
- Note your current PHP version, WordPress version, and active plugins
- Find out where your domain’s DNS is managed
- Check whether your email runs through your old host
- Pick a quiet time for the final switch
- Pause large content changes during the move
Email deserves special attention. If your business email is hosted with your current provider, plan how to move or replace it, or your messages could stop arriving after the switch.
Step 2: Back Up Everything
Never migrate without a complete backup. If something goes wrong, you can restore the site exactly as it was.
What to Back Up
- The wp-content folder with themes, plugins, and uploads
- The database, which holds posts, pages, and settings
- The wp-config.php file
- Any custom files such as robots.txt or server rules
Use your host’s backup tool or a plugin such as UpdraftPlus or Duplicator. Download the backup to your own computer, not just to the old server.
Step 3: Choose a Migration Method
Method A: Ask the New Host to Migrate It
Many hosts offer free or paid migration. You provide access details, and their team moves the site. This is the easiest option for non-technical owners, and you can check the result before switching DNS.
Method B: Use a Migration Plugin
Plugins such as Duplicator, All-in-One WP Migration, and others package your site into a single archive that you import on the new host.
- Install the plugin on your current site.
- Create a package or export of the whole site.
- Install a fresh copy of WordPress on the new host.
- Install the same plugin there.
- Import the package and follow the on-screen steps.
Free versions can have size limits on larger sites, so check before you start.
Method C: Migrate Manually
This method gives you full control and suits confident users.
- Download your files using FTP or the file manager.
- Export the database with phpMyAdmin.
- Create a new empty database and user on the new host.
- Upload your files to the new server.
- Import the database into the new one.
- Edit wp-config.php with the new database name, user, and password.
- If the address changes, update URLs in the database safely.
Use a search and replace tool that handles serialised data when changing URLs. A plain text replace can corrupt settings.
Step 4: Test the New Site Before Going Live
This is the step that protects you from downtime.
How to Preview the Site
- Use a temporary URL if your new host provides one
- Or edit your computer’s hosts file to point your domain to the new server’s address on your machine only
What to Test
- The home page, key posts, and several inner pages
- Images and media files
- Menus, widgets, and the theme layout
- Contact forms and any checkout or booking features
- Logging in to the dashboard
- Plugins that rely on the server environment
Look closely for broken images, missing styles, or error messages. Fix problems now, while visitors are still on the old site.
Step 5: Prepare DNS for a Smooth Switch
DNS tells the internet which server hosts your domain. When you change it, visitors move to the new server, though the change takes time to spread.
- A day or two beforehand, lower the TTL value on your DNS records so changes spread faster
- Note your existing records, especially those for email
- Know where you will make the change, either at your registrar or your DNS provider
Lowering the TTL beforehand shortens the period when some visitors still see the old site.
Step 6: Switch Your Domain
Step by Step
- Freeze content changes on the old site.
- Take one final backup and copy any new content or orders to the new site.
- Update the DNS records or nameservers to point to the new host.
- Keep your email records unchanged unless you are also moving email.
- Wait for the change to spread, which can take from minutes to a day.
- Check the site from different devices and networks.
Sites with comments, orders, or user registrations need extra care. Put the site in a short maintenance mode during the final copy so you do not lose new data.
Step 7: Check Everything After the Move
- Confirm the SSL certificate is active and the site loads over HTTPS
- Test forms, logins, and checkout processes
- Check that email works in both directions
- Review permalink settings and test several links
- Confirm that your sitemap and robots file are correct
- Check Google Search Console for crawl errors
- Make sure backups and security tools run on the new host
- Look at page speed to confirm the improvement
Keep the old hosting active for about a week or two, until you are certain everything works. Then cancel it, and remember to download a final backup first.
Things to Check Before You Start
Check Plugin and Theme Licences
Some premium plugins tie licences to a domain or server. Make sure they will activate on the new host.
Check the PHP Version
Moving to a different PHP version can break old plugins. Match versions at first, then upgrade carefully.
Check File and Database Size
Large sites need more time and may require manual methods or help from the host.
Common Mistakes to Avoid
Do Not Cancel the Old Host Too Early
Keep it until the new site is stable and DNS has fully spread.
Do Not Forget About Email
Changing nameservers can affect email. Plan it before you switch.
Do Not Skip Testing
A quick preview catches problems that would otherwise hit real visitors.
Do Not Migrate Without a Backup
A complete, downloaded backup is your safety net.
Do Not Change Many Things at Once
Moving hosts while redesigning the site makes problems hard to trace. Do one at a time.
When to Get Professional Help
Consider a developer or the host’s migration team when your site earns income, runs an online store, has a very large database, or uses a complex setup.
A professional can handle the technical details, reduce downtime, and protect your search rankings. Ask what is included, how they test, and what happens if something fails.
Frequently Asked Questions
Will migrating hurt my SEO?
Not if you keep the same URLs, avoid long downtime, and check everything afterwards. A good migration can even help by improving speed.
How long does a WordPress migration take?
Small sites can move in an hour or two. Larger sites take longer, plus time for DNS to spread.
Will my site go down during the move?
Not if you test first and switch DNS only when ready. Visitors usually see no interruption.
Do I need to change my domain name?
No. You keep your domain and simply point it to the new server.
Can I migrate for free?
Many hosts offer free migration, and plugins can do the job, though large sites may need paid options.
What happens to my email?
It depends where it is hosted. Plan this separately so messages are not lost.
Do I need to reinstall plugins?
Not if you copy the entire site. Migration tools and manual transfers keep them in place.
How can I tell when DNS has finished spreading?
Use an online DNS checker, and test from several networks. Most changes complete within hours.
Final Thoughts
Learning How to Migrate a WordPress Site to a New Host turns a worrying task into a manageable one.
Back up everything, choose the method that suits your skill, and test on the new server before you switch. Prepare DNS in advance and plan for email.
After the move, run a careful checklist and keep the old host a little longer as insurance.
With patience and preparation, your visitors will arrive at the same site, only faster and more reliable than before.