Migrating a WordPress website manually to a new host, such as New hosting, can seem like a daunting task, but by following a structured approach, the process becomes much easier. This guide outlines the step-by-step procedure to successfully transfer your website.
Step 1: Download Website Files
The first step in migration is to download all files associated with your website. To do this:
- Log in to your cPanel account.
- Navigate to File Manager and open the public_html directory.
- Select all files and compress them into a ZIP archive.
- Download the ZIP file to your local computer for safekeeping.
Step 2: Export the Database
WordPress stores most of its content in a database. Exporting the database ensures that your website’s data is preserved. Follow these steps:
- Access phpMyAdmin from your cPanel.
- Locate the correct database by checking the
wp-config.phpfile. - Select the database and click Export.
- Choose the Quick Export option and download the
.sqlfile.
Step 3: Update DNS Settings
To ensure that your domain points to the new host:
- Log in to your domain registrar (e.g., Namecheap, GoDaddy).
- Navigate to DNS settings and update the Name Servers to New hosting’s DNS.
- Save the changes and allow time for propagation (this may take a few hours).
Step 4: Upload Files to New hosting
Once the website files are backed up, upload them to New hosting:
- Log in to your New hosting cPanel.
- Open File Manager and navigate to the public_html directory.
- Upload the ZIP file and extract its contents.
Step 5: Create a New Database
Since the old database is stored locally, you need to create a new one on New hosting:
- Go to Add User To Database in New hosting’s cPanel.
- Click Create Database and enter a database name, username, and password.
- Save these credentials for later use.
Step 6: Assign User Privileges
To ensure that the new database functions correctly:
- In New hosting’s Manage My Databases option, navigate to Add User To Database.
- Select the newly created database and user.
- Assign All Privileges to the user for full control over the database.
- Save changes and proceed.
Step 7: Import the Database
To transfer your website’s data:
- Open phpMyAdmin in New hosting’s panel.
- Select the newly created database.
- Click Import and upload the
.sqlfile exported earlier.
Step 8: Update wp-config.php File
After the database is imported, you must update your site’s configuration:
- Locate
wp-config.phpin File Manager. - Edit the file and update the database name, username, and password.
- Save changes and close the file.
Step 9: Verify the Website Migration
Once all steps are completed:
- Open your website URL to confirm it is working.
- Clear cache and test functionality to ensure proper migration.
- Troubleshoot any issues, such as broken links or missing media files.
Conclusion
By following these steps, you can manually migrate your WordPress website to New hosting without relying on plugins or third-party tools. This method ensures full control over your website files and database, making it a secure and efficient migration process.
✅ Change WordPress Site URL via phpMyAdmin✅
Step 1: Access phpMyAdmin
- Log in to your web hosting control panel (like cPanel, Plesk, etc.).
- Open phpMyAdmin under the Databases section.
Step 2: Select the WordPress Database
- In the left sidebar, click the database name used by your WordPress site.
- You’ll see a list of tables with prefixes like
wp_(e.g.,wp_options,wp_users, etc.).
Step 3: Open the wp_options Table
- Click on the table called
wp_options(or it might be{prefix}_optionsif you changed the table prefix). - Look for the following two rows:
siteurlhome
Step 4: Edit siteurl
- Find the row with the option_name
siteurl. - Click the Edit (🖉) icon next to it.
- In the option_value field, replace the existing URL with your new WordPress URL (e.g.,
https://newdomain.com). - Click Go to save.
Step 5: Edit home
- Find the row with the option_name
home. - Click the Edit icon next to it.
- Change the option_value to the same new URL.
- Click Go to save.
Step 6: Clear Caches (if applicable)
- If you use caching plugins (like WP Super Cache, W3 Total Cache), clear the cache.
- You may also need to clear your browser cache.
🧪 Optional: Update URLs in Posts & Pages
If the domain changed and you want to update all old URLs (like images or internal links), you can use a search and replace plugin like:
- Better Search Replace
- WP Migrate Lite
- Or use SQL queries directly in phpMyAdmin (advanced)