The Blog

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.

Comments (1)

  • kiavalenzuela
    December 17, 2018 at 7:45 pm

    Howdy! This blog post could not be written any better!
    Reading through this post reminds me of my previous
    roommate! He constantly kept talking about this.
    I am going to send this article to him. Fairly certain he’s going to have a
    good read. I appreciate you for sharing!

Leave a comment