How to Move a WordPress Site to a New Host (Without Downtime)

Key Takeaways
- ✓Keep the old host running until the new one is tested and DNS has switched.
- ✓Use a migration plugin for most sites; do it manually for very large sites.
- ✓Preview the site on the new server before touching DNS.
- ✓Lower your DNS TTL a day before the switch to make it near-instant.
Table of Contents
- •How to Move a WordPress Site to a New Host (Without Downtime)
- •Before You Start
- •Method 1: Move WordPress With a Migration Plugin
- •Method 2: Move WordPress Manually
- •1. Copy the files
- •2. Export and import the database
- •3. Update wp-config.php
- •4. Fix URLs if the domain changes
- •Test the Site Before Switching DNS
- •Switch DNS and Finish Up
- •Common Problems After Moving WordPress
- •Frequently Asked Questions
- •Want Us to Move It for You?
How to Move a WordPress Site to a New Host (Without Downtime)
Moving a WordPress site to a new host sounds risky, but the process is predictable once you know the order: copy everything, test it on the new server before anyone sees it, then point the domain across. Done this way, visitors never see downtime, and if anything goes wrong your old site is still live.
Before You Start
- Keep the old hosting active until the move is finished and DNS has switched. Do not cancel it first.
- Take a full backup (files and database) and download it to your own computer.
- Lower your DNS TTL to 300 seconds at your DNS provider a day in advance, so the final switch takes minutes instead of hours.
- Plan a content freeze: on a blog, avoid publishing during the move; on a WooCommerce store, pick a quiet hour so no orders are lost between the copy and the switch.
Use our WordPress migration checklist to tick off each step.
Method 1: Move WordPress With a Migration Plugin
For most sites under a few gigabytes, a plugin is the fastest and safest route. Popular options include Duplicator, All-in-One WP Migration and UpdraftPlus (with its migration add-on). The steps are similar for all of them:
- Install the plugin on the old site and create a full export (files plus database).
- On the new host, create an empty database and install a fresh WordPress (or use the plugin's installer script).
- Import the package on the new site. The plugin replaces the content and rewrites URLs if the domain changes.
- Log in on the new site with your old admin username and password; the database came across with it.
Check each plugin's free-version limits before you start; some cap the import size, which matters for sites with large media libraries.
Method 2: Move WordPress Manually
Manual migration gives you full control and works for any size of site. You need SSH or SFTP access on both servers.
1. Copy the files
# On the new server, pull files straight from the old one
rsync -avz olduser@old-server:/var/www/example.com/ /var/www/example.com/If you only have SFTP, download the WordPress folder (including wp-content) and upload it to the new server.
2. Export and import the database
# On the old server
mysqldump -u DB_USER -p DB_NAME > site.sql
# On the new server
mysql -u NEW_USER -p NEW_DB < site.sql3. Update wp-config.php
Change DB_NAME, DB_USER, DB_PASSWORD and DB_HOST to the new database details.
4. Fix URLs if the domain changes
If you are also changing domain, use WP-CLI so serialized data is updated safely:
wp search-replace 'https://old-domain.com' 'https://new-domain.com' --skip-columns=guidNever run a plain SQL find-and-replace on WordPress URLs; it breaks serialized settings in widgets and page builders.
Test the Site Before Switching DNS
Preview the new copy while the world still sees the old one. Edit the hosts file on your computer to point your domain at the new server's IP:
# Windows: C:\Windows\System32\drivers\etc\hosts
# macOS/Linux: /etc/hosts
203.0.113.10 example.com www.example.comThen check the homepage, a few posts, forms, logins, checkout (on a store) and the admin area. Remove the hosts entry when you are done. If you use a staging workflow, our guide to WordPress staging sites shows how to test changes safely afterwards too.
Switch DNS and Finish Up
- Update the domain's A record (and
www) to the new server IP. - Install SSL on the new server as soon as DNS points to it.
- Re-save permalinks (Settings > Permalinks > Save) to regenerate rewrite rules.
- Watch both servers for 24–48 hours. When the old one stops receiving traffic, take a final backup and cancel it.
Common Problems After Moving WordPress
- "Error establishing a database connection": wrong details in wp-config.php, or the database user lacks privileges.
- Every page except the homepage returns 404: re-save permalinks; on Nginx, make sure
try_filesis set (see fixing 404s in Nginx). - Mixed content warnings after SSL: some URLs still use http; run a search-replace from http to https.
- Images missing: the
wp-content/uploadsfolder did not copy fully, or file permissions are wrong.
Frequently Asked Questions
How long does it take to move a WordPress site to a new host?
A small site takes 30–60 minutes of work. DNS changes then take minutes to a few hours to reach everyone, faster if you lowered the TTL in advance.
Will moving WordPress hurt my SEO?
Not if the URLs stay the same and the site has no downtime. Search engines only see the IP change.
Can I move WordPress to a new host without a plugin?
Yes. Copy the files with rsync or SFTP, export the database with mysqldump, import it on the new server and update wp-config.php.
Do I need to reinstall plugins and themes?
No. They live in the wp-content folder and the database, so they move with the site.
Want Us to Move It for You?
RackUp IT managed WordPress hosting includes a free migration: we copy your files and database, test the site on our servers, and switch DNS only when everything checks out, so your visitors never see downtime.
Unsure Which Cloud Hosting Plan Fits Your Site?
Answer 4 quick diagnostic questions to estimate the server CPU, RAM and storage you need with transparent pricing.
Cloud Infrastructure Engineer.
Related Posts
WordPress HostingBluehost Alternatives (2026): WordPress Hosting Without the Renewal Price Jump
Bluehost's 2026 WordPress prices, what's included, and the alternatives for one site with monthly billing and the same price at renewal, with honest trade-offs.
WordPress HostingHostinger Alternatives (2026): WordPress Hosting Without Long Prepaid Terms
Hostinger's low WordPress price needs a 48-month prepay and renews higher. Its 2026 prices, what's included, and the alternatives, with an honest look at trade-offs.
WordPress HostingThe WordPress 5-Minute Install, Step by Step (2026)
WordPress's famous 5-minute install, step by step: requirements, database, file upload, wp-config.php, the web installer, WP-CLI and fixes for common install problems.