Before you migrate: know what kind of move it is
The steps depend on what changes. Pin that down first:
| Scenario | What changes | Watch out for |
|---|---|---|
| New host, same domain | Server, database credentials, IP address | Switch DNS only after testing; keep email records intact |
| Same host, new domain | Every URL in the database | Search-replace, 301 redirects, Search Console |
| New host and new domain | Both | Move first, then change the domain; do not debug both at once |
| HTTP to HTTPS | Protocol in every URL | Install the certificate first, fix mixed content |
Also note the PHP version, database size, size of the uploads folder and whether the old server runs cron jobs, custom server rules or mailboxes. Mailboxes are the item most often forgotten in a host change.
Option 1: migrate with a plugin
For small and mid-sized sites without SSH access, a migration plugin is the easiest path.
- Duplicator: Builds an archive plus installer.php. Upload both to the new server and the installer sets up the database and URLs.
- All-in-One WP Migration: Exports a single file you import into a fresh WordPress install. The free version caps import size; large sites need a paid extension.
- Migrate Guru: Transfers server to server and is built for large sites.
- Host tools: Many hosts offer their own migration plugin or a free migration service.
Check each tool's current limits and pricing on the vendor's site before you start.
Option 2: migrate with WP-CLI
With SSH on both servers, the manual route is fast and transparent.
On the old server
cd /path/to/wordpress
wp db export migration.sql
tar czf migration.tar.gz --exclude=wp-content/cache .
On the new server
tar xzf migration.tar.gz
wp config set DB_NAME new_db_name
wp config set DB_USER new_db_user
wp config set DB_PASSWORD 'new-password'
wp db import migration.sql
Move the archives directly between servers with scp or rsync instead of downloading them to your laptop. Afterwards, make sure the files are owned by the right system user, or WordPress cannot write uploads and updates.
Replacing URLs when the domain changes
When you move WordPress to a new domain, the old address is everywhere in the database: links, image paths, menus and plugin settings. Replace it with WP-CLI, which handles serialized data:
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid --dry-run
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid
wp cache flush
wp rewrite flush
The --dry-run pass reports how many replacements each table would get without changing anything. The guid column stays as it is because it is meant as a permanent identifier for feeds. Without SSH, the Better Search Replace plugin does the same from the dashboard.
Test before you switch DNS
When only the host changes, the domain still points at the old server. You can test the new one under the real domain anyway:
- Add the new server's IP for your domain to the hosts file on your computer.
- Check the home page, subpages, images, forms, login and, if relevant, checkout and payments.
- Confirm the SSL certificate is valid on the new server.
- Remove the hosts entry when you are done.
Lower the TTL on your DNS records to a few minutes a day before the move. The switch then takes effect quickly, and you can roll back fast if something is wrong.
Switch DNS and freeze the old site
After testing, point the A record (and AAAA for IPv6) at the new IP. Change MX records only if the mailboxes are moving too. During the switch, freeze changes on the old site so no comments, orders or form entries land on the old server. Keep the old server running for a few days until traffic has fully moved.
Changing domains: take search engines with you
- Redirect every old URL with a 301 to the matching page on the new domain, not everything to the home page.
- Verify the new domain in Google Search Console and use the Change of Address tool.
- Submit the new sitemap. More on search visibility in WordPress SEO.
- Keep the old domain registered for at least a year so redirects and backlinks keep working.
Post-migration checklist
- Settings → General shows the correct WordPress Address and Site Address.
- Tools → Site Health reports no critical issues.
- Contact forms deliver. New servers often lack properly configured mail; an SMTP plugin with an authenticated mailbox fixes that.
- Scheduled tasks run.
wp cron event listshows whether WP-Cron is processing events. - Backups are configured on the new server; old schedules still point at the old one.
- Search engines are allowed in: under Settings → Reading, the box that discourages indexing must be unchecked.
Common mistakes
- Migrating without a fresh backup. Make one first, as described in WordPress backup.
- Replacing the domain in the SQL dump with a text editor and corrupting serialized data.
- Switching DNS before the new site has been tested.
- Overlooking a PHP version difference between servers. Older plugins sometimes fail on newer PHP.
- Forgetting to reconfigure caching plugins that store absolute paths.
How eCloud Systems can help
We can handle a WordPress migration to your new host or domain on request, and maintenance afterward. If a fresh start makes more sense, we set up a new site on your hosting with our WordPress package. Get in touch through the contact form.
Frequently asked questions
Why not just find and replace the domain in the SQL file?
WordPress and many plugins store settings as serialized PHP data that records the length of every string. When the domain length changes, those entries break. wp search-replace and migration plugins handle serialized data correctly.
Will changing domains hurt my Google rankings?
Visibility can fluctuate for a while. With a 301 redirect from every old URL to its new equivalent and the Change of Address tool in Search Console, signals usually carry over.
How long does a WordPress migration take?
Copying and importing a small business site often takes one to two hours. DNS propagation can add a few hours, depending on the TTL, before every visitor reaches the new server.