• Go to VernalWeb
  • Go to VernalWeb
home/Article/Scripts & Apps/WordPress/How to duplicate a WordPress website manually

How to duplicate a WordPress website manually

2 views 0

Written by VernalWeb
June 9, 2020

Sometimes, we need to clone our own websites for several reasons like development or testing purposes. In this article, we will learn how to duplicate a WordPress website manually. For this article, we will duplicate a website from example.com to test.example.com.

Step 1: Log in to your cPanel account.

Step 2: If you duplicate the site on the same domain, create a subdomain.

Step 3: Now go to your File Manager.

Step 4: Copy all WordPress files from the current directory to sub-directory (subdomain).

Step 5: Now create a new database. This database will be used for the duplicate website.

Step 6: Export current database file from phpMyAdmin.

Step 7: Now import the database file to your newly created database using phpMyAdmin.

Step 8: You are almost done! Now you just need to change the website URL. To update the URL You can add this following code in the wp-config.php file.

define('WP_HOME','http://test.example.com');
define('WP_SITEURL','http://test.example.com');

And you are done! Now you know how to duplicate a WordPress website.


We hope this tutorial helps you find the perfect solution. If you like our tutorials, definitely you’ll love our support. All VernalWeb hosting plans include 24/7 support from our amazing inhouse support staff. Check out our WordPress hosting plans and have your website migrated today!

Was this helpful?

Yes  No
Related Articles
  • How to Configure WordPress to Use SMTP For Sending Emails
  • How to Fix the Error Establishing a Database Connection in WordPress
  • How To Fix A Syntax Error in WordPress
  • How To Fix 500 Internal Server Error in WordPress
  • How to Fix “LiteSpeed Cache is disabled” Error in WordPress
  • How to Change The WordPress Admin Login URL

Didn't find your answer? Submit Ticket

  • © 2014 - 2023 VernalWeb. All rights reserved.