Migrating WordPress to a new host comes down to four things: copy the files, copy the database, update the configuration and URLs, and point the domain at the new server. Most problems come from skipping preparation, not from the copy itself. Use the checklist below and test on the new host before you change DNS.
We do not promise a migration without any interruption. Whether visitors notice depends on your site, your data and how carefully you plan the switch.
The file and database steps follow the official WordPress guide to moving a site. Check the current version of that guide, and your new host's documentation, before you start.
Before you start
- Confirm you have access to the old and new hosts, the domain registrar or DNS provider, and WordPress admin.
- Check the new host supports the PHP version and extensions your site uses.
- List plugins that depend on the server, such as caching or security plugins, and note their settings.
- Choose a quiet time for the DNS switch.
- Pause content changes during the move, or plan to repeat the copy afterwards.
Step 1: Back up everything
Back up the whole WordPress directory (themes, plugins, uploads and configuration files) and the database. Store the backup somewhere other than the old host. Do not delete anything from the old host until the move is finished and checked.
Step 2: Export the database
Export the database from the old host, for example with phpMyAdmin or a command line tool. With WP-CLI it looks like this:
wp db export site-backup.sql
Keep the file private. A database dump contains user data and should never be left in a public folder.
Step 3: Prepare the new host
Create an empty database and a database user on the new host. Note the database name, user, host and password, and store the password in a secret store, not in a chat or a ticket.
Step 4: Transfer files and import
Upload the files to the new host's web root and import the database.
wp db import site-backup.sql
Then edit wp-config.php with the new database name, user and host if they differ. Use placeholders in any shared notes:
define( 'DB_NAME', '<new-database-name>' );
define( 'DB_USER', '<new-database-user>' );
define( 'DB_HOST', '<new-database-host>' );
Step 5: Fix URLs if the address changes
If the domain or path changes, old URLs remain inside the database. The WordPress guide warns against a plain find-and-replace because WordPress stores serialized data, and a naive edit can corrupt it. Use a tool built for this, such as WP-CLI:
wp search-replace 'https://old.example.com' 'https://new.example.com' --skip-columns=guid --dry-run
Run it with --dry-run first, review the count, then run it without the flag. The official guide also says never to change the contents of the guid column. The --skip-columns=guid flag in the command above does that. Clear caches and transients afterwards.
If the domain stays the same, you can skip this step.
Step 6: Test before switching DNS
Preview the site on the new host without changing DNS. Options include a temporary address from the host or a local hosts file entry that points your domain at the new server for your machine only.
Test the following:
- Home page, key landing pages and a few old posts.
- Menus, images and embedded media.
- Contact forms and any email they send.
- Login, the admin area and user roles.
- Checkout or booking flows, if you have them.
- Permalinks. If pages return 404, re-save the permalink settings so the rewrite rules are rebuilt.
- Plugin settings, scheduled tasks and the PHP error log.
Step 7: Switch DNS
Lower the DNS record's time-to-live (TTL) a day or more ahead, so the change spreads faster. When testing passes, update the record to the new server. Propagation takes time, and some visitors will reach the old server for a while, which is why content freezes and keeping the old host running matter.
After the switch:
- Check that HTTPS works and the certificate is valid for the domain.
- Confirm email still works, especially if mail records were hosted with the old provider.
- Check that redirects and canonical tags are unchanged.
Step 8: Keep the old host for a while
Leave the old site in place until you have verified the new one over several days, including scheduled jobs and form submissions. Then cancel it. Keep your final backup.
A rollback plan
Decide in advance what failure looks like, for example forms not sending or checkout failing. If it happens, point DNS back to the old server, which is still intact. This only works if you did not delete or change the old site, and if no new orders or posts were created on the new one in the meantime.
Mistakes to avoid
Changing DNS before testing. Always preview first.
Using plain find-and-replace on the database. It can break serialized data.
Forgetting email. Mail often lives with the domain host, and moving DNS can disrupt it.
Overlooking hard-coded paths or old URLs in theme files and page builders.
Skipping a restore test of your backup before you start.
Cancelling the old host too early.
When to ask for help
Consider an engineer if the site has a store or memberships, custom plugins, a multisite setup, a very large database or strict availability needs. A rushed migration there costs more than planning it.
How we work with this at LaunchSprintAI
We build and harden web products and review deployments with engineers, using AI tools to speed up routine work. If you want the server side handled for you, see Managed WordPress hosting. This checklist stays product-neutral. If your site needs custom development as part of a move, see our MVP development page, or start a project brief.
To decide where to move, read Managed Hosting vs VPS.
Frequently asked questions
Can I use a migration plugin? Many exist, and they can help. Check the plugin's current documentation and test on a copy first.
Will my search rankings drop? A move that keeps URLs, content and redirects unchanged is the safest case. We cannot promise any outcome.
How long does it take? It depends on site size, access and testing. We do not give fixed times.