• Services
    • Web Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Hosting
  • Domains
  • Features
  • Company
    • About Us
    • Server Locations
    • Affiliates
    • Company Blog
  • Support
  • Client Login
  • Services
    • Web Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Hosting
  • Domains
  • Features
  • Company
    • About Us
    • Server Locations
    • Affiliates
    • Company Blog
  • Support
  • Client Login
Home/Article/Scripts & Apps/WordPress/How to duplicate a WordPress website manually

How to duplicate a WordPress website manually

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 Backup WordPress Website to DropBox
  • How to Enable SVG File Support in WordPress
  • 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

Didn't find your answer? Submit Ticket

Latest Articles

  • How to show Hidden Files (.htaccess) in cPanel File Manager
  • Setup a Domain Redirection in cPanel
  • Create a MySQL Database and a User from cPanel
  • Remove page extensions using .htaccess
  • Cron Job Usage & Policy
  • © 2014 - 2025 VernalWeb. All rights reserved.