In this article, you will learn how to easily duplicate a WordPress website for development or testing purpose.
1. Log into your cPanel
2. Create a subdomain
The subdomain will be used for accessing the development site. For example: dev.domain.com.
3. Go to your “File Manager”
The file manager can be launched from your cPanel control panel.
4. Copy your WordPress Files
The next step us to copy the files of your WordPress site from your current directory to the document root directory created for your subdomain (dev.domain.com).
The root directory usually is the same name as the subdomain that was
created. (Or you can also copy those WordPress files/folders from current directory to that subdomain directory, using FTP client software, such as FileZilla).
5. Create a new database
This will be used to separate the test site from your main site. If you use the same database for the development site, the live site will reflect the changes that are made on the test site. Importing the existing database to the test site database will prevent this. You can create a new database, by using PhpMyAdmin in cPanel.
6. Export your current database
You can easily export your database, by using PhpMyAdmin in cPanel.
7. Import your Database
Now you will need to import the recently exported database, to the new database that you have created. This can be done from the very same phpMyAdmin.
8. Change the site URL
The final step is to change the site URL for your development site. This can be easily done by adding the following code snippet into your wp-config.php file:
define('WP_HOME','http://dev.domain.com');
define('WP_SITEURL','http://dev.domain.com');That’s it. Now you know how to duplicate a WordPress website for development or testing purpose.
iam still facing the issue in copying the wordpress in Zostinger