# How to transfer a WordPress site to a new host

> A step-by-step checklist for moving a WordPress site with minimal downtime, using a host migration, a plugin or a manual move.

Source: https://comparehostingonline.com/guides/transfer-wordpress-to-new-host/

## Short answer

To move a WordPress site, take a full backup, set up the new host, copy the files and database (or use the host's free migration), test the site on the new server, then switch your DNS. Keep the old host until you have confirmed everything works.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

## The big picture

Move first, switch last

1.  **Back up** Files and database
2.  **Copy to new host** Migration, plugin or manual
3.  **Test** Before DNS changes
4.  **Switch DNS** Point the domain at the new host

## Choose how to migrate

Migration methods

| Type | Low effort | Control | Cost | Best for large sites |
| --- | --- | --- | --- | --- |
| Host migration service | 5 out of 5 | 2 out of 5 | 5 out of 5 | 3 out of 5 |
| Migration plugin | 3 out of 5 | 3 out of 5 | 4 out of 5 | 2 out of 5 |
| Manual move | 1 out of 5 | 5 out of 5 | 5 out of 5 | 5 out of 5 |

Editorial ratings from 1 (weak) to 5 (strong). Many hosts offer migration free.

## The checklist

1.  1
    
    **Back up everything**
    
    Files and database, stored somewhere other than the old host.
    
2.  2
    
    **Set up the new host**
    
    Create the account and check the PHP version and storage.
    
3.  3
    
    **Copy the site**
    
    Use the host tool or a plugin, or move files and import the database manually, then update wp-config.php.
    
4.  4
    
    **Test before switching DNS**
    
    Use a temporary address or a local hosts-file entry.
    
5.  5
    
    **Recreate extras**
    
    Email accounts, cron jobs, FTP or SSH users and custom DNS records.
    
6.  6
    
    **Lower your DNS TTL a day before**
    
    So the change spreads faster.
    
7.  7
    
    **Switch DNS**
    
    Then watch propagation until the new records resolve everywhere.
    
8.  8
    
    **Check after the switch**
    
    Forms, checkout, SSL, redirects and key pages.
    
9.  9
    
    **Keep the old host a few days**
    
    Then cancel it.
    

## Common problems

-   **Broken links or mixed content** Update the site URL and fix hard-coded addresses.
-   **Missing images** Confirm the uploads folder copied completely.
-   **Email stops working** Recreate MX records and mailboxes before the switch.
-   **SSL warnings** Issue a certificate on the new host before pointing DNS.

## What are the ways to migrate WordPress?

The WordPress developer documentation describes the manual process: export the database, copy the files, edit the configuration and update the site address. Whichever route you take, finish with the checks in the [website migration checklist](https://comparehostingonline.com/guides/website-migration-checklist/).

| Method | Good for | Watch out for |
| --- | --- | --- |
| Host migration service | People who want it done for them | Check scope: email, multisite, large sites |
| Migration plugin | Most sites, with little technical skill | Large databases and time limits |
| Manual copy | Full control and big sites | Takes time; easy to miss a step |
| WP-CLI and SSH | Developers and repeatable moves | Needs SSH access; see [what SSH access is](https://comparehostingonline.com/guides/what-is-ssh-access/) |

## What do you do about the database and URLs?

WordPress stores its address in the database, and many plugins store full URLs inside serialized data. If the domain stays the same, the move is simple. If it changes, use a search-and-replace tool that handles serialized data, such as WP-CLI’s search-replace command or a reputable plugin, rather than editing the SQL file by hand, which can corrupt settings. Update wp-config.php with the new database name, user and password, and check that the table prefix matches.

## How do you test the new site before switching DNS?

1.  1
    
    **Use a temporary URL or the hosts file**
    
    View the new server at your real domain without changing public DNS.
    
2.  2
    
    **Click through everything**
    
    Pages, menus, forms, search, logins and checkout.
    
3.  3
    
    **Check permalinks and media**
    
    Resave permalinks, then test images and downloads.
    
4.  4
    
    **Check PHP and plugins**
    
    Read the error log; see PHP versions on hosting.
    

## What should you do about email, SSL and SEO?

-   Move email only after the site works; see [move email to a new host](https://comparehostingonline.com/guides/move-email-to-new-host/).
-   Issue HTTPS on the new host; see [what an SSL certificate is](https://comparehostingonline.com/guides/what-is-an-ssl-certificate/).
-   Keep URLs identical, and use 301 redirects if any change.
-   Check robots.txt and the “discourage search engines” setting after the move.
-   Resubmit the sitemap and watch search console.

## A worked example: moving a blog with 400 posts

A blog has 400 posts, 3,000 images and fifteen plugins. The owner decides to move from a crowded shared plan to a managed WordPress host. First they take a full backup and download it. Then they ask the new host to run its free migration, which copies files and the database and gives a temporary URL. They check ten key pages, the contact form and the newsletter sign-up on the temporary URL and find that the contact form sends mail from an address that fails authentication. They fix the sender settings and add the new SPF record.

Next they lower the TTL on their DNS records, switch the A record in the evening and watch the logs. Search console shows no new errors a week later. They cancel the old plan after ten days. The move took an afternoon of work spread over a week, and no visitor saw an outage.

## What goes wrong most often?

-   A plugin that stores absolute URLs breaks after a domain change; use a proper search and replace.
-   A host with a lower PHP memory limit makes an import fail halfway; raise the limit or import in parts.
-   A caching plugin keeps serving stale files; purge caches after the move.
-   A staging copy blocks search engines and the setting is pushed to the live site; check the visibility setting.
-   Email stops because MX records were not copied; see [move email to a new host](https://comparehostingonline.com/guides/move-email-to-new-host/).

## Sources and further reading

-   [WordPress developer documentation: migrating a site](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)
-   [WordPress developer documentation: backups](https://developer.wordpress.org/advanced-administration/security/backup/)
-   [WP-CLI](https://wp-cli.org/)
-   [Google: site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)

## Common questions

Can I move WordPress without downtime?

Yes. Set up the site on the new host, test it using a temporary URL or your hosts file, then change DNS. The old site keeps serving visitors until DNS updates, so there is no gap.

Do I need a plugin to migrate WordPress?

Not required. You can copy files and the database manually, use WP-CLI or ask the host to migrate it. Plugins make it easier for most sites, though large databases can hit time limits.

What should I check after migrating?

Pages, images, forms, logins, checkout, permalinks, SSL, email, scheduled tasks and the error log. Also check robots.txt, the search-engine visibility setting and search console for new errors.

Why do my images or links break after the move?

Usually URLs stored in the database still point to the old address, or file permissions and paths differ. Run a proper search-and-replace that handles serialized data and check permissions.

Should I use the host's free migration?

Often a good idea, especially for larger sites. Ask what it covers, whether it includes email, how they test the result and whether you can review the site before DNS changes.

## Related

[Best WordPress hosting](https://comparehostingonline.com/best/wordpress-hosting/)

## More guides

[What is cPanel?](https://comparehostingonline.com/guides/what-is-cpanel/) [VPS or shared hosting: which should you choose?](https://comparehostingonline.com/guides/vps-or-shared-hosting/) [What is a domain name?](https://comparehostingonline.com/guides/what-is-a-domain-name/) [What are DNS records? A, CNAME, MX and TXT explained](https://comparehostingonline.com/guides/what-are-dns-records/) [Nameservers explained: what they are and how to change them](https://comparehostingonline.com/guides/nameservers-explained/) [How to point a domain to your hosting](https://comparehostingonline.com/guides/point-domain-to-hosting/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
