Moving a WordPress site to a new host sounds like one big scary click. It isn't. It is five small jobs done in the right order: back up, copy files, copy the database, test on the new server, then switch DNS.
Most broken migrations come from doing those jobs out of order. People point the domain first and test later, or run a raw find-and-replace on the database and break every widget. Visitors notice before the owner does.
This guide covers three ways to migrate WordPress to a new host (a managed migration, a plugin, or a manual move), plus the DNS cutover and a zero-downtime checklist you can reuse every time.
If you are still picking where to move, read my guide on how to choose WordPress hosting first. If domains and hosting still feel like the same thing, my domain vs hosting explainer clears that up in five minutes.
Some links are affiliate links; they don't change your price.

What does migrating WordPress to a new host involve?
A WordPress site is two things: files and a database. The files are WordPress core, wp-content (themes, plugins, uploads) and wp-config.php. The database holds posts, pages, settings, users and plugin data.
WordPress.org's migration docs say it plainly: if the domain and URLs stay the same, you can move by copying the files and the database. You don't reinstall WordPress. You only edit wp-config.php if the database name, user or password changes on the new server.
So a host migration is really this sequence:
- Back up files and database on the old host.
- Create an empty database and user on the new host.
- Upload the files and import the database.
- Update wp-config.php with the new database details.
- Test the copy on the new server before the world sees it.
- Point the domain at the new server and wait out DNS caching.
- Keep the old host running until traffic has fully moved.
Changing the domain at the same time adds one more job: a safe URL search-and-replace. More on that below, because it is where most migrations break.
Which migration method should you use?
Pick the method by site size, your comfort with SSH, and whether the new host does it for you.
| Method | Best for | Effort | Main catch |
|---|---|---|---|
| Host's managed migration | Standard single sites moving to a host that offers it | Lowest | Not every plan qualifies; email, DNS and cron usually aren't moved |
| Migration plugin | Small to medium sites, no SSH | Low | Archive size can hit upload or PHP limits |
| Manual (SFTP + database dump) | Large sites, VPS targets, full control | Highest | You handle every step, including serialized URLs |
My rule: use the host's free migration if your new plan includes it. Use a plugin if the site is a few GB or less. Go manual when the site is big, the target is a VPS, or a plugin keeps timing out.

What should you do before you migrate?
Ten minutes of prep removes most of the risk.
Take a full backup first. Files and database, stored off the server. If anything goes wrong, this is your way back. My WordPress backup guide covers plugin and manual methods, and how to test a restore.
Lower the DNS TTL a day or two ahead. TTL is how long resolvers cache your DNS records. If records and caching are new to you, my plain-English guide to DNS explains how a lookup works and why changes take time to spread.
Cloudflare's docs explain that longer TTLs mean record changes take longer to reach users. On Cloudflare, proxied records already use 300 seconds (five minutes), and DNS-only records can go as low as 60 seconds on non-Enterprise plans. Drop the A record TTL to around 300 seconds at least one old-TTL period before the move, so the switch spreads quickly.
Freeze content changes. Tell editors not to publish during the move window. For a WooCommerce store, pick a low-traffic hour, because new orders on the old server won't exist on the new one.
Write down the extras. Note your PHP version, cron jobs, email setup, SSL settings, redirects in .htaccess and any server-level config. Many migration tools copy only files and the database.
How do you use your new host's migration service?
This is the easiest route when it is offered. As one example, Hostinger's support docs (as of 14 November 2026) say free migration is available on its Web, Cloud and Agency hosting plans. You submit a request in the dashboard with your WordPress admin login, cPanel login, or a backup archive plus a .sql export.
A few details from those docs are worth copying into your own checklist, whatever host you use:
- The original site stays live during the transfer, so only point the domain after the migration finishes.
- Disable two-factor login and anti-bot checks on the old site first, or the migration team can't sign in.
- Files and databases move. Cron jobs, DNS records, custom SSL configuration, FTP accounts and email do not, so you set those up yourself.
- Hostinger's VPS plans are not covered by the free migration. On a VPS you migrate with a plugin or by hand.
- WordPress multisite isn't supported by its automated flow.
For a typical blog or small business site moving to shared or cloud hosting, this path is hard to beat. Hostinger is the host I recommend for that kind of move.
How do you migrate WordPress with a plugin?
Migration plugins package your files and database into an archive, then unpack it on the new server and fix URLs for you.
Duplicator is one of the long-standing options, and WordPress.org's own migration page lists it as a tool for moving a site between locations. Backup plugins such as UpdraftPlus and WPvivid can also restore a backup onto a new install. Feature limits differ between free and paid tiers, so check the current plan pages before you rely on a feature.
The general plugin flow looks like this:
- Install the plugin on the old site and build a package or full backup.
- Download the archive and the installer (or the backup files).
- On the new host, either install a fresh WordPress or upload the installer, depending on the plugin.
- Create an empty database and user, then run the import with those details.
- Let the plugin replace URLs if the domain or path changed.
- Log in on the new copy and re-save Settings, Permalinks.
Watch the size. Shared hosts cap upload size and PHP execution time, so a large archive can time out halfway. Delete old backups, spam comments and unused media before packaging. If it still fails, switch to the manual method. The plugin, host and manual restore steps are all in my guide to restoring WordPress from a backup.
How do you migrate WordPress manually?
Manual migration gives you full control and is the normal path to a VPS. You need SFTP or SSH on both servers, plus database access.
Step 1: Copy the files
Download the whole WordPress directory over SFTP, or archive it on the server first. With SSH on both ends, this is much faster:
Upload or copy the archive to the new server, extract it into the web root, and fix ownership so the web server user can read the files.
Step 2: Export and import the database
Export from phpMyAdmin, or with SSH:
Create the empty database and user on the new host before the import.
Step 3: Update wp-config.php
Edit DB_NAME, DB_USER, DB_PASSWORD and DB_HOST to match the new server. WordPress.org notes this is only needed when those values change, but on a new host they almost always do. If the new site shows "Error establishing a database connection" after the move, one of these four values is usually wrong; my guide to fixing the WordPress database connection error walks through each check.
Step 4: Fix permalinks and server rules
Log in on the new copy, open Settings, Permalinks and click Save to regenerate rewrite rules. On Nginx (common on a VPS), add the WordPress rewrite rule to the server block, because .htaccess doesn't apply there.
If you are moving to a VPS, harden it before go-live. My checklist on how to secure a VPS covers SSH keys, firewall and updates.

How do you change URLs safely if the domain changes?
If you only change hosts, skip this. The URLs stay identical.
If the domain or path changes too, every old URL in the database needs updating. WordPress.org warns that a plain find-and-replace on the whole database can break things, because some themes and widgets store serialized data with the URL length recorded. Change the length and the data no longer loads.
Use a tool that understands serialized data. WordPress.org lists the Better Search Replace plugin, WP-CLI's search-replace command, and the Search Replace DB script for experienced admins. With WP-CLI, do a dry run first:
The WP-CLI docs say the command handles PHP serialized data and doesn't change primary keys. The --skip-columns=guid part matters: WordPress.org says never to change the guid column, because feed readers use it to know which posts they have already shown.
After a domain change, add 301 redirects from every old URL to the new one, and use Search Console's change of address tool so Google moves your rankings along. Then submit the new domain's sitemap in its own Search Console property; my XML sitemap guide covers the submission steps and the errors to watch for.
How do you test the new site before switching DNS?
Never point the domain at a site you haven't seen working. You have two clean ways to preview it.
Edit your hosts file. Add a line that maps your domain to the new server's IP on your own computer. Your browser then loads the new server while everyone else still sees the old one. Remove the line when you're done.
Use your host's preview tool. Many hosts offer a temporary URL or a preview link. Hostinger's docs point to a SkipDNS tool with your plan's IP for this check.
Then walk through a short test list:
- Home page, a few posts, a page and a category archive load without errors.
- Images load from the new server, not hot-linked from the old one.
- wp-admin login works, and you can save a draft.
- Contact forms send, and checkout works on a test order for stores.
- Permalinks work (no 404s on posts).
- Site Health shows no critical issues, and the PHP version matches or beats the old one.
If you see a white screen after the move, it is usually a plugin, PHP version or memory issue. My guide to the WordPress White Screen of Death walks the fix in order.
How do you switch DNS with zero downtime?
Once the copy passes testing, switching DNS is the actual go-live.
There are two ways to point a domain at the new host. You can change the A record (and the www record) to the new server's IP while keeping your current DNS provider. Or you can switch the domain's nameservers to the new host. Changing the A record is usually faster and lower-risk, because you keep every other record (email MX, TXT verification) exactly where it is.
Because you lowered the TTL earlier, most visitors reach the new server within minutes. Some resolvers and local caches lag, so for a while both servers get traffic. That is why the content freeze matters: anything posted on the old server during that window won't show up on the new one.
After the switch:
- Issue or install SSL on the new host and confirm https loads with no warnings.
- Re-create cron jobs and check that scheduled posts and backups run.
- Confirm email still works if your mail ran through the old host.
- Raise the TTL back to a normal value once things are stable.
- Keep the old host live for a few days, then take a final backup and cancel it.

Where should a migrating WordPress site land?
Moving is the right time to fix the reason you left. If the old host was slow, look at resources and server stack, not just price.
For most blogs and small business sites, a quality shared or cloud plan is enough, and a free managed migration saves you the work. When you have outgrown shared PHP limits, run several sites, or want SSH and full control, a VPS is the next step. My explainer on what a VPS is covers when that jump makes sense.
My default recommendation for that VPS jump is a Hostinger KVM VPS. Just remember that the free migration service doesn't cover VPS plans, so plan to migrate with a plugin or by hand using the manual steps above.
Zero-downtime WordPress migration checklist
Copy this list into your notes for the next move:
- Full backup of files and database, stored off the server.
- DNS TTL lowered to about 300 seconds at least a day ahead.
- Content freeze announced for the move window.
- PHP version, cron jobs, email, SSL and custom redirects written down.
- New database and user created on the new host.
- Files copied, database imported, wp-config.php updated.
- URLs replaced with a serialization-safe tool (only if the domain changed), guid skipped.
- Permalinks re-saved and server rewrite rules in place.
- Site tested through the hosts file or a preview link.
- DNS switched, SSL working, cron and email checked.
- Old host kept for a few days, then a final backup before cancelling.
FAQ
A good migration is boring. Back up, copy, test on the new server, then flip DNS with a low TTL and keep the old host as a safety net. Do it in that order and your readers never notice the move. Next, run through my WordPress hosting checklist once more to confirm the new plan really fixes what pushed you to leave.


