How to Clone a Website to a New Domain Using cPanel
Cloning a site — making a full working copy on a different domain — is useful for launching a sister site, building a template you reuse, or moving a project to a new brand. The process comes down to two halves: copy the files, then copy the database, and point the new domain at the copy.
Before you start
Make sure the destination exists. Add the new domain as an addon domain (or set up its own account), so it has its own document root ready to receive files.
Step 1: Copy the files
- In File Manager, open the source site's folder.
- Select all files, Compress them into a zip, and move the zip to the new domain's document root.
- Extract it there. Our guide on File Manager covers compress and extract.
Step 2: Copy the database
- Export the database from the original site.
- Create a fresh database and user — see creating a MySQL database in cPanel.
- Import the export into the new database.
Step 3: Update the configuration
Edit the copied site's config file to use the new database name, user and password. For WordPress that is wp-config.php. WordPress also stores its URL in the database, so you will need to update the site URL — our guide on duplicating a WordPress website manually walks through the WordPress-specific search-and-replace.
Step 4: Test the clone
Visit the new domain and click around. Check internal links, images and logins. If you hit a database connection error, the config credentials are the first thing to recheck.
Frequently asked questions
Is there an easier way for WordPress?
Yes — a migration plugin can package and restore the whole site in a couple of clicks. See backing up with UpdraftPlus, which can also restore to a new location, or moving WordPress between locations.
Will cloning affect my original site?
No, as long as you copy to a separate folder and a separate database. The clone is independent. Just be careful not to overwrite the source.
Two identical sites — is that an SEO problem?
Duplicate content across public domains can dilute rankings. If the clone is a staging or template copy, keep it private with directory password protection until it is genuinely different.
Was this article helpful?