If you need to migrate WordPress site to new host, the job is smaller than it looks. You copy two things: the site files and the database. The trouble sits outside those copies. Your route depends on your plugins and your DNS settings.
Below you get the three routes compared side by side. This one also covers what a copy does not fix when you migrate WordPress site to new host. Our cheap VPS hosting roundup covers the destination side, where VPS is a virtual private server.
Disclosure: the Hostinger links and the coupon code below are part of Hostinger's affiliate programme. Tutorsbot may earn a commission if you buy, at no extra cost to you.
Which migration route should you use?
Three routes work: the new host's migration service, a plugin, or a manual move with WP-CLI. The host service hands the copy to its team. The manual route leaves you in control. A plugin sits between the two. This post does not rate plugins, so read the docs of the one you pick.
| Route | Who works | You supply | Limits to know |
|---|---|---|---|
| New host's migration service | The new host's team | hPanel details, the domain, the account | Free with a Hostinger plan. One request per site, five at once, done within 24 hours |
| Migration plugin | You, in the old admin | The plugin, an open host and database | Set by the plugin. Check its own documentation |
| Manual move with WP-CLI | You, over SSH | WP-CLI, mysqldump credentials, a database | No limits. You handle URLs, the GUID column and DNS |
Pick the host service when you want someone else to do the copy. Pick the manual route when you run the server yourself.
The manual route with WP-CLI
WP-CLI is a command line tool for WordPress. Its export command runs mysqldump with the credentials in wp-config.php. The export reference lists every option.
wp db export backup.sql
Leave out the file name and the command builds one from the database name, the date and a hash. A single dash sends the output to your terminal.
wp db export -
You can limit the dump to named tables, or leave tables out.
wp db export backup.sql --tables=wp_posts,wp_options
wp db export backup.sql --exclude_tables=wp_site,wp_blogs
Extra mysqldump switches pass through one generic option, --<field>=<value>.
wp db export backup.sql --add-drop-table
On the new server, import the dump. The user and password are flags. The host comes from DB_HOST.
wp db import backup.sql --dbuser=wordpress --dbpass=your-password
Two flags change the import.
wp db import backup.sql --skip-optimization --skip-sql-mode-compat
What actually moves when you migrate WordPress site to new host?
WordPress's own migration guide says to back up the whole installation. That covers core files, themes, plugins, uploads, .htaccess and wp-config.php. You also copy the complete database.
Two options in wp_options decide where the site lives. siteurl is the WordPress Address, where your core files sit. home is the Site Address, where visitors arrive. Both need https:// and no trailing slash.
| Item | Moves? | What you must do |
|---|---|---|
| Core files, themes, plugins, uploads | Yes | Copy them, plugin files too |
| Database | Yes | Export, import, update wp-config.php |
| siteurl and home in wp_options | Yes, but wrong | Rewrite with https://, no slash |
| Old domain in post content | Partly | Replace in wp_posts only |
| Post GUID column | Yes, unchanged | Never change it |
| Serialized option data | Yes, but fragile | Use a URL-aware tool |
| Plugin settings and widgets | No | Not in an export |
| Multisite tables | Yes, with a check | Check wp_site and wp_blogs |
| Domain and DNS records | No | Repoint them yourself |
One rule matters most. WordPress says the GUID column of posts must never change. Feed readers use that column to tell a post they have shown before from a new one. A blanket replace can also break themes and widgets, because some stored values carry the old address length.
For ordinary posts, run the search and replace on the wp_posts table only. Hard-coded links in templates, menus, widgets and media references do not follow the change.
What does it cost to host the site on the new server?
Compare the renewal price, not the headline. Shared plans advertise a low monthly price on a prepaid term. Cloud servers list a flat monthly price with no term. The table multiplies each listed price by twelve.
| Provider | Memory and storage | Promo per month | Year one | Renewal per month | Year one at renewal |
|---|---|---|---|---|---|
| Hostinger WordPress Premium | 20 GB SSD | USD 1.99, 48 months, USD 95.52 upfront | USD 23.88 | USD 10.99 | USD 131.88 |
| Hostinger WordPress Unlimited | 50 GB NVMe | USD 2.79, 48 months, USD 133.92 upfront | USD 33.48 | USD 16.99 | USD 203.88 |
| Hostinger WordPress Cloud Startup | 100 GB NVMe | USD 7.99, 48 months, USD 383.52 upfront | USD 95.88 | USD 25.99 | USD 311.88 |
| Hostinger VPS KVM 1 | 4 GB, 50 GB NVMe | USD 6.49, 24 months, USD 155.76 upfront | USD 77.88 | USD 11.99 | USD 143.88 |
| Hostinger VPS KVM 2 | 8 GB, 100 GB NVMe | USD 8.79, 24 months, USD 210.96 upfront | USD 105.48 | USD 14.99 | USD 179.88 |
| DigitalOcean Basic | 1 GiB, 25 GiB SSD | USD 6.00 monthly, no term | USD 72.00 | USD 6.00 | USD 72.00 |
| Hetzner CX23 | 4 GB, 40 GB NVMe | EUR 5.99 excl. VAT, unavailable | EUR 71.88 | EUR 5.99 excl. VAT | EUR 71.88 |
Checked November 2026 on the Hostinger, DigitalOcean and Hetzner pricing pages.
What Hostinger costs, and what it renews at
Hostinger's WordPress plans on a 48-month term list Premium at USD 1.99 per month, USD 95.52 upfront, renewing at USD 10.99. Unlimited lists USD 2.79, USD 133.92 upfront, renewing at USD 16.99.
The VPS plans run on a 24-month prepaid term.
The renewal price is higher in every case. Check the cart for the price that applies to your term before you buy. See the current Hostinger plans.
Disclosure: this link is an affiliate link. Tutorsbot may earn a commission if you buy, at no extra cost to you.
When Hostinger is the wrong choice
Hostinger's WordPress plans ask for 48 months up front, and its VPS plans 24. DigitalOcean's Basic droplets fit better if you want a flat monthly price. The 1 GiB plan lists USD 6.00 per month, billed per second from 1 January 2026.
Hetzner's CX23 is the cheapest line on paper at EUR 5.99 per month, excluding VAT. Every Hetzner cost-optimized plan currently shows as unavailable, so those prices are not orderable.
How long is the downtime while the domain repoints?
The file and database copy can run while the old site keeps serving. The real downtime is the DNS change. Cloudflare's reference documents an automatic 300-second time to live on proxied records. That is how long servers keep an old address.
| DNS setup | Time to live | On the day | Source |
|---|---|---|---|
| Cloudflare proxied record | 300 seconds, automatic | Old address may be served for about five minutes | Cloudflare TTL |
| Cloudflare DNS-only, non-Enterprise | 60 seconds minimum | The shortest window Cloudflare allows | Cloudflare TTL |
| Cloudflare DNS-only, Enterprise | 30 seconds minimum | The fastest cutover window | Cloudflare TTL |
| Any zone on a long value | Whatever you set | Updates take longer to apply everywhere | Cloudflare TTL |
For DNS-only records, the floor is 60 seconds, or 30 seconds on Enterprise. A longer value means the update takes longer to reach every name server. Lower it before the move and raise it afterwards. Our site move cost guide shows what a move costs on another platform.
You can migrate WordPress site to new host without moving the domain at all. Leave it at your current registrar and change only the web server records.
How do you move a WordPress site to a new server?
Copy first, cut over second. The old site keeps serving while the files and the database travel. On the new server, rewrite siteurl and home, import the dump, then re-save .htaccess and regenerate the permalinks.
Test the copy before you touch the DNS records. Open the home page, a post, the contact form and the admin panel. The uploads folder must travel too.
How do you migrate WordPress site to new host free?
Hostinger states its WordPress migration service is free with any hosting plan and unlimited. 85% of migrations complete in under 5 minutes, and a migration does not affect live-site availability. Limits still apply: one request per site, up to five at once, no bulk migrations.
The manual route is free too. WP-CLI costs nothing, and both commands run on your own server. The import reference lists the flags.
What should you do next?
Pick a route and test the copy before you change DNS.
- Backup - copy the files and the database first.
- Route - choose a host service, a plugin or WP-CLI.
- Links - rewrite siteurl and home, then replace links in wp_posts only.
- DNS - lower the time to live, test the copy, then repoint the records.
Photo: ゆっかりーん, CC0, via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:WordPress_Twenty_Twelve_Theme.png)
Fazlur Rahman






