How To Move Or Create a Copy of Your WordPress Website

Creating New Folder

Moving or copying wordpress website to a new location,you need to create a whole new directory.You can always do this by using the File Manager tool in you cpanel or you can just use the FTP client.

Creating Copy of Files

When the destination folder is created,you now need to copy the website files in it.You can do this via the FTP or the File Manager tool in the cpanel.You have to copy all the files from the wordpress folder to the new destination folder that you created before.Always make sure that you also copied the .htaccess file which will be hidden in the public_html directory.Copy this file to the new directory as well.To see the hidden files,make sure to click Show Hidden Files checkbox while you click on the File Manager tool and a pop-up comes.

Creating Copy of Database

You need to export the database of your wordpress website.If you do not know what is the name of your database,then look into the wp-config.php file which you will find on the wordpress websites folder.If you like to know how to backup and restore database read this article.

Reconfiguring WordPress to make it work with the new URL

Now you need to reconfigure the wordpress application so that it can work from the new folder with the new database.Open the wp-config.php file and locate the following codes lines there:

define(‘DB_NAME’, ‘user_wrdp1’);
/** MySQL database username */
define(‘DB_USER’, ‘user_wrdp1’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password’);
/** MySQL hostname */
define(‘DB_HOST’, ‘hostname’);
Remember you need to replace those values with your new database that you just created before,the database username and the password for it also.Make sure you have given the hostname as localhost.Now save the file and congrats your copy of website is ready.Just remember to to update the URLs to the new one as well,I’ll make another tutorial on that.Till then have fun.
You may also like to read How to Install WordPress Plugins
And if you need any help comment bellow or just ask me at fiverr.
TarequeYousuf
Writer
I believe we all have good sides in us and we all have skills with what we can shine ourselves.It's a matter of time to shine like the sun. I like to meet with new people and get to know them.Like to travel and watching movies. I am person who likes to work like a mad man..I never left any work unfinished and like to see the end..

Leave a Reply