It’s easy to clone a WordPress site, once you understand a few basics. If you are a newbie to WordPress, using a plugin is the simplest way to do it. That’s how I started out. The first time I cloned a site, I tried to do it manually. Copying the files was simple and straightforward. But, the database mystified me. I had little knowledge of what it was and no idea how to replicate it, so I ended up using a plugin for the entire site migration (files and database).
Gradually, as I researched, explored, and tested, I learned that a database is the key feature that separates a Content-Management System (CMS) like WordPress from HTML sites. It’s where the content lives: text (pages, posts, comments), meta data (categories, tags, custom fields), user accounts (user names, passwords), site options, plugin and theme settings, etc. It’s quite significant!
There are plenty of plugins that will replicate all of the files and/or the database from one site to another. They do it with one click, really, really well. A few of my favorites are: Backup Buddy, All-in-1 WP Migration, Duplicator, and UpDraft Plus.
Yet, there are times when a plugin won’t work. Maybe the site is too large and the plugin’s copying process times out. Perhaps there are incompatibilities with the web host server. Whatever the reason, it’s a good idea to learn how to clone a WordPress site without a plugin.
Basic definitions
Source = the original site that you are cloning.
Destination = the new site
Step 1 – Backup the source site
Always begin with a backup of the source site just in case you need to revert back to it! Cloning can then begin with no worries.
- Log into your web host account and navigate to the cPanel.
- COPY THE FILES: Go to the File Manager. Select the folder that contains the WordPress source site, and make a .zip archive of it (“Compress”). Then, download to your computer.
- If the source site is at the top level of the domain, the folder will likely be named “public_html”.
- If the source site is in its own folder, it will likely be named “WordPress” or have the same name as the domain name (“myurl.com”)
- COPY THE DATABASE: Go to phpMyAdmin. Select the database for the source site. Select all of the tables (“Check all”). Click “EXPORT”. Use Custom options so you can save the SQL database as a .zip archive (“Save output to a file > Compression: zipped”).

Step 2 – Create the new Destination site
The new site can be an entirely new primary domain. Or it can be a subdomain or subdirectory of an existing primary domain. The steps below are for a subdomain, but are applicable to any situation.
- Assuming you already have a primary domain, log into your webhost cPanel and create a subdomain for the destination site: destination.myurl.com.
- Alternative: if your webhost doesn’t allow subdomains, create a subdirectory: myurl.com/destination.
- NOTE: If migrating an existing site to a new web host, you need to either transfer the domain name registration to the new host or point the existing domain name records to the new host.
- Install WordPress in the subdomain (or subdirectory) using your webhost’s tool. This may be a software program (Softaculous), a “Wizard” application, or something similar.
Step 3 – Copy Files from Source to Destination Site
- Decompress the .zip archive of the source files you downloaded to your computer in Step 1.
- Go to the File Manager (or use an FTP client, such as Filezilla). Select the folder (a.k.a. directory) that contains the WordPress destination site.
- Since you’ve got a fresh install of WordPress, you only need to upload one source folder to the destination subdomain or subdirectory: wp-content
- The wp-content folder contains anything you upload to your site that is not stored in the database: themes, plugins, and media (images, videos, PDFs, etc.). For a nice explanation, see this article: A Beginner’s Guide to WordPress’ Most Important Directory
- Uploading the wp-content folder will overwrite the same folder in the fresh install. Everything else will remain intact!

Step 4 – Copy Database from Source to Destination Site
During this next sequence of steps, you’ll replace the source URL and File Path with the destination URL and File Path. This is where I do use a plugin to find and replace the data securely.
- Install and activate the WP Migrate DB plugin on both the source and the destination sites.
- Open the WP Migrate DB Pro plugin on both sites (Tools > Migrate DB). Select “Export File”.
- URL find and replace –
- On the destination site: copy onto your clipboard the URL content in the “FIND” field:
//destination.myurl.com - On the source site: leave the “FIND” fields as is. In the Replace field (“New URL”), paste the destination site URL:
//destination.myurl.com
- On the destination site: copy onto your clipboard the URL content in the “FIND” field:
- FILE PATH find and replace –
- On the destination site: copy onto your clipboard the File Path content in the “FIND” field:
//different/path/to/destination.myurl.com - On the source site: leave the “FIND” fields as is. In the Replace field (“New File Path”), paste the destination File Path:
//different/path/to/destination.myurl.com
- On the destination site: copy onto your clipboard the File Path content in the “FIND” field:
- Export the file – use these settings:
- Save as a file to your computer
- Compress the file as a gzip

- Import the file on the destination site:
- With plugin: You need the paid (WP Migrate DB Pro) version of the plugin to use its “Import” feature (Tools > Migrate DB)
- Without plugin: Go to phpMyAdmin.
- Select the database for the destination site. Select all of the tables (“Check all”). Click “DROP”.
- Click on the “IMPORT” tab, select the exported database file created in Step 5 above.


Step 5 – Check permalinks and theme settings
After importing the new database, the destination site will acquire all of the settings of the source site, including login credentials. You’ll most likely be logged out of the destination site, so go ahead and log back in to check out everything.
- Navigate around the site’s front-end to view the main pages and key posts.
- Navigate through the site’s back-end to review the configurations and make sure everything looks OK.
- Two key areas that may need attention after a clone is finished:
- The Permalinks (URLs of the content) might need to be reset.
Go to Settings > Permalinks
Select the option that you prefer and “Save Changes”. - Sometimes the Theme Settings need to be reset.
Go to Theme Name > Theme Settings
All you may need to do is click Save. If things still don’t look right, you can try re-importing the database. - Appearance > Customize: check this area if you used it in the source site.
- The Permalinks (URLs of the content) might need to be reset.


Leave a Reply