To move a WordPress site to a new host manually, back up your files and database, upload them to the new server, create a new database, update wp-config.php, test on the new server, and only then change DNS. Doing the test step before the DNS switch is what keeps the move safe. Below are the steps for a typical cPanel and SFTP setup.
Plugins can automate this, but a manual move gives you full control and works when a plugin fails or the site is too large. For a plugin-based, near-zero downtime approach, read our guide on how to migrate a WordPress site without downtime.
Before you move: checklist
- Keep your old hosting active until the move is verified.
- Lower the DNS TTL on your domain to a few minutes, a day ahead if possible.
- Note your PHP version, database name, and any custom
.htaccessrules. - Pause orders or content edits during the final copy if you run WooCommerce or a membership site.
- Take a full backup. Our backup and restore guide shows how.
Step 1: Copy your files
Download everything in your site folder (often public_html) with SFTP, or create a zip archive in the old host’s File Manager and download that. The most important part is wp-content, which holds your themes, plugins, and uploads, plus wp-config.php. The WordPress documentation on moving WordPress to a new server describes copying the files and the database as the core of any move.
Step 2: Export the database
- Log in to cPanel and open phpMyAdmin.
- Select your WordPress database in the left column.
- Click Export, choose Quick, and use the SQL format.
- Save the file. For very large databases, ask your host about a command-line export instead.
Step 3: Create the database on the new host
In the new cPanel, open MySQL Databases and create a new database and a database user. Add the user to the database with all privileges. Write down the database name, user, and the password you chose, because you will need them in wp-config.php. Keep these credentials out of emails and chats.
Step 4: Import the database and upload the files
- Open phpMyAdmin on the new host, select the new database, and use Import to upload your SQL file.
- Upload your site files to the new site folder, then extract the zip if you used one.
- Open
wp-config.phpand set the newDB_NAME,DB_USER, andDB_PASSWORD. - Leave
DB_HOSTaslocalhostunless your new host tells you otherwise.
If you see a database error afterwards, see our fixes for Error Establishing a Database Connection.
Step 5: Test before changing DNS
Your domain still points at the old host, so you need a way to see the new one. Two reliable options:
- Hosts file: add the new server’s IP and your domain to the
hostsfile on your computer. Remove the line after testing. - Temporary URL: use the preview or temporary domain from your new host, if it provides one. Do not change the site URL in the database for this, or you will have to change it back.
Check the home page, a few inner pages, the contact form, login, images, and, for stores, a test checkout. Re-save permalinks from Settings > Permalinks if inner pages return 404 errors.
Step 6: Switch DNS and verify
Update your domain’s nameservers or A record to point to the new host. Propagation can take from minutes to a day or more, so keep the old host running meanwhile. After the site loads from the new server:
- Confirm the SSL certificate is active and the site loads over HTTPS.
- Check for a redirect loop. If you see one, read WordPress too many redirects.
- Send a test email from your contact form and any WooCommerce emails.
- Set up backups on the new host, then cancel the old plan only after a few days of normal operation.
Common problems after moving
- Missing images or broken layout: usually a failed or partial upload of
wp-content/uploads. Re-upload that folder. - 404 on inner pages: re-save permalinks and check
.htaccesswas copied. - White screen: often a PHP version difference. Check the host’s PHP version and the debug log.
- Mixed content warnings: happen when old HTTP URLs remain in the database after switching to HTTPS.
Need help moving your WordPress site?
I have 10+ years of experience with WordPress migrations, and I am Top Rated on Upwork with a 100% Job Success score. If you would rather hand the move to someone else, see my WordPress migration service or get in touch. I reply within 24 hours.
Frequently Asked Questions
How long does a manual WordPress move take?
A small site can be copied in an hour or two. Larger sites take longer because of file and database size. DNS propagation is separate and can add more time before every visitor sees the new host.
Will my SEO be affected?
Not if the domain and URLs stay the same and the site works on the new host. The risks are downtime, broken redirects, and missing pages, so test thoroughly before switching DNS.
Do I need to change URLs in the database?
Only when the domain or protocol changes. For a host-to-host move on the same domain, URLs stay as they are. If you do change them, use a tool that handles serialized data safely instead of a plain find and replace.