To migrate a WordPress site without downtime, copy the full site (files and database) to the new host, test the copy on the new server while the old site stays live, and switch DNS only after everything works. Visitors keep seeing the old site until DNS updates, so there is no gap in service.
This guide walks through that process step by step, with a checklist you can follow whether you move the site yourself or hand it to a developer.
Before You Start: Migration Checklist
- Full backup of files and database, stored somewhere other than the old server
- Login details for the old host, the new host and your domain registrar or DNS provider (keep them private, never share them in tickets or chats)
- A list of what the site does: forms, email, WooCommerce orders, memberships, scheduled posts
- Your current PHP version and the PHP version available on the new host
- A quiet window for the final switch, such as a low-traffic time of day
Step 1: Back Up Everything
Create a complete backup of wp-content, your database and any custom files in the site root, such as wp-config.php and .htaccess. Download a copy and confirm it is not corrupted. If you need a refresher, see our guide on how to back up and restore your WordPress site.
Step 2: Lower Your DNS TTL
TTL (time to live) controls how long DNS servers cache your domain’s IP address. At least 24 hours before the move, lower the TTL on your A record to a short value such as 300 seconds. This makes the final switch propagate faster. Check your current TTL first, because you need to wait at least that long for the change to take effect.
Step 3: Prepare the New Host
- Create the hosting account and a new empty database and database user
- Choose a PHP version that your theme and plugins support
- Note the new server’s IP address, which you will need for testing
- Check how the host issues SSL certificates. Some hosts can only issue them once the domain points to the new server, so plan for that step
Step 4: Copy the Files and Database
You have two common options.
Option A: Use a Migration Plugin
Plugins such as Duplicator, All-in-One WP Migration or UpdraftPlus can package the site and restore it on the new host. This is usually the quickest route for small and medium sites, but very large sites can hit upload or time limits.
Option B: Migrate Manually
- Upload the site files to the new host with SFTP
- Export the database from the old host with phpMyAdmin or WP-CLI
- Import it into the new database
- Open wp-config.php on the new host and update DB_NAME, DB_USER, DB_PASSWORD and DB_HOST
If the domain or the URL changes, update the stored URLs in the database. With WP-CLI, run a dry run first:
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guid --dry-run
If the output looks correct, run the same command again without --dry-run.
Step 5: Test the New Site Before Switching DNS
You can preview the new server without changing public DNS by editing the hosts file on your own computer. Add a line that maps your domain to the new server’s IP address:
NEW_SERVER_IP yourdomain.com www.yourdomain.com
On Windows the file is C:\Windows\System32\drivers\etc\hosts, and on macOS and Linux it is /etc/hosts. Browse the site and check the homepage, key pages, menus, images, contact forms, login, search and, for stores, the cart and checkout. Remove the line when you finish testing.
Step 6: Do a Final Sync if the Site Changes Often
If your site receives orders, comments or form entries, changes can arrive on the old site after you copied it. Just before the switch, put the old site in maintenance mode for a short time, export the database again and import it on the new host. For WooCommerce stores, schedule the final sync at a quiet time so no orders are lost.
Step 7: Switch DNS
Update the A record (and the AAAA record, if you have one) to the new server’s IP address, or change nameservers if the move includes DNS hosting. Most visitors reach the new server quickly with a low TTL, though full propagation can take up to 24 to 48 hours. Keep the old hosting active for several days in case you need to compare or roll back.
If your email runs on the old host, move the mailboxes first or keep the existing MX records unchanged. Switching the website’s A record does not move email by itself.
Step 8: Post-Migration Checks
- Go to Settings, then Permalinks, and click Save to refresh rewrite rules
- Confirm HTTPS works on every page and fix any mixed-content warnings
- Test forms and confirm notification emails still arrive
- Clear any caching plugin, server cache and CDN cache
- Make sure Settings, then Reading, does not have “Discourage search engines” ticked
- Check robots.txt and your XML sitemap load correctly
- Confirm Google Search Console still verifies the site, and add 301 redirects if any URLs changed
- Crawl the site for 404 errors and broken images
Common Migration Mistakes
- Skipping the backup, or never testing that it restores
- Changing DNS before testing the copy on the new server
- Forgetting that email is hosted on the old server
- Leaving old URLs in the database after a domain change
- Cancelling the old hosting too soon
When to Get Help
A migration is straightforward for a small brochure site, but stores, membership sites, multisite networks and sites with custom code have more moving parts. If downtime or lost orders would be costly, a careful WordPress migration service can handle the backup, the transfer, testing and the DNS switch for you. You can also contact us to discuss your site.
Frequently Asked Questions
How long does a WordPress migration take?
A small site can often be copied and tested within a few hours. Larger sites and stores take longer, and DNS changes can take up to 24 to 48 hours to reach every visitor.
Will migrating hurt my SEO?
Not usually, if the site stays online, the URLs stay the same and HTTPS keeps working. If URLs or the domain change, set up 301 redirects and check Search Console afterwards.
Can I migrate WordPress without downtime?
Yes. Keep the old site live, copy and test the new one, lower the DNS TTL beforehand and switch DNS only when the copy is verified.
Do I need coding knowledge to migrate a site?
Not necessarily. A migration plugin covers many sites without code. Manual migration needs comfort with SFTP, databases and wp-config.php.