Hello! In this post, I will be discussing the process of manually moving a WordPress site. Whether you’re looking to change hosting providers or create a local copy of your site for testing purposes, moving your site can seem like a daunting task.
Overall, while manually moving your WordPress site may seem intimidating, it’s a straightforward process that can be accomplished with just a few simple steps. By following the steps outlined in this post, you can easily move your site to its new location and continue to enjoy all of the benefits that WordPress has to offer.
Backup/Download:
- Download your WordPress folders and files via FTP. (wp-admin, wp-content etc.)
- Login to your cPanel and go to
phpMyAdmin
and click on your WordPress database name. - Click on
Export
tab. - Click on
Go
button to start download.
Upload/Move:
- Open
wp-config.php
in text/html editor and note/write downDB_NAME
(Database Name),DB_USER
(Database User) andDB_PASSWORD
(Database Password). - Now upload your WordPress files via FTP to your new cPanel.
- Login to your new cPanel and create
MySQL Database
. (For creating databases check out our post how to create mysql database.) - Now go to
phpMyAdmin
, select the database you’ve created. - Now simply drag and drop the database
.sql
file. - Point domain to your new Hosting cPanel and your new site will be live after the DNS is resolved.
Moving to New Domain:
If you are moving to a new hosting and new domain then you will have to do the following extra steps.
- Navigate to
phpMyAdmin
and click on database name. - Find
prefix_options
. - Edit
siteurl
andhome
, enter your new domain url and clickGo
to save.
Prefix can be anything, I have added prefix_
just for example. You can find the prefix in wp-config.php
file.
$table_prefix = 'prefix_';
Moving WordPress Multisite:
If you are moving Multisite WordPress installation then method will be all same. The only difference is that you will have to search and edit prefix_options
for each site. For example if you have 3 sites then you will have prefix_options
, prefix_2_options
and prefix_3_options
in your database.
Muhammad Zohaib