Cloning WordPress Site

ThisIsMyLife

Power Member
Joined
Apr 21, 2018
Messages
768
Reaction score
762
Could anyone provide detailed guide how to properly clone wordpress site and re-upload it to my hosting without further troubles with CSS, Images and generally website assets ?
 
Wordpress and other CMS store content in the database. It's impossible to clone that site as a Wordpress site unless you get a database dump, which I'm sure they won't give you.

You can download all the rendered assets & upload that, but it won't be a Wordpress site, it'll be a static site. I'm sure if you dig around in the forums here you'll find "site copier" tools; they'll be the same for Wordpress or any other site (static or not).
 
Wordpress and other CMS store content in the database. It's impossible to clone that site as a Wordpress site unless you get a database dump, which I'm sure they won't give you.

You can download all the rendered assets & upload that, but it won't be a Wordpress site, it'll be a static site. I'm sure if you dig around in the forums here you'll find "site copier" tools; they'll be the same for Wordpress or any other site (static or not).
Accordingly, How it will be look like if its static ?
 
Accordingly, How it will be look like if its static ?

Identical if you do it right. Just find some site cloning tool.

Sometimes I migrate Wordpress to static for clients because I hate Wordpress (for many reasons, but I won't rant). I usually just [cmd / ctrl + S] the site on Chrome, then modify the HTML manually to make sure the assets are all loaded properly (only if the site is small). If you know what you're doing, this is an easy start.

Again, there should be some site cloning tool available that will help you out.
 
Identical if you do it right. Just find some site cloning tool.

Sometimes I migrate Wordpress to static for clients because I hate Wordpress (for many reasons, but I won't rant). I usually just [cmd / ctrl + S] the site on Chrome, then modify the HTML manually to make sure the assets are all loaded properly (only if the site is small). If you know what you're doing, this is an easy start.

Again, there should be some site cloning tool available that will help you out.
Okay thanks a lot have a nice day :)
 
1. Go to your File Manager in cpanel.
Zip everything (the whole site) which is usually the first folder with the domain name.

2. Go to your phpmyadmin.
Export your database (you can find the name of the database inside wp config)

3. Unzip everything to your new hosting.
Import your database (and make sure you have a database user with the same password active, unless you'd like to create a new one and edit wp config).

4. Redirect the old domain with 301 redirects including the posts (everything all the links) to your new site / homepage.

Before doing all the above, go to wordpress Options and change Wordpress Address and Site Address to your new domain url.

Enjoy your brand new domain name.
 
Did you mean cloning a theme itself, so the site looks identical? Or you want the content as well?
 
Could anyone provide detailed guide how to properly clone wordpress site and re-upload it to my hosting without further troubles with CSS, Images and generally website assets ?
BAckupBuddy -->manually create DB and use their php importer
updraft plus --> install blank WP, install plugin then send site from old to new URL and there you go
 
I was under the impression that he wants to take someone else's site and upload it to his own hosting.

OP: do you have control over the original site?
 
Lol seems like people don't like to help.

Download the "Duplicator" plugin. You don't need to do anything. Just click next button everytime and you are done. It will give you 2 files, download them to your computer, upload it to new hosting (direction must be completely clear). Open website/installer.php and follow instructions.

Suggest you to create new mysql before opening /installer.php page. This plugin can create you a new database but it has lots of problems, so it's better for you to create it yourself. @ThisIsMyLife

(Note: You don't have to save anything from your main database, plugin does it itself.)

You'll get exact same website, images files etc everything will be same and fine.
 
Could anyone provide detailed guide how to properly clone wordpress site and re-upload it to my hosting without further troubles with CSS, Images and generally website assets ?
if you are serving static content if you can do it easily with a VPS hosting all your sites and launch clones with just a command, I remember cloning a site to 70 clones with fabric.
 
There is One Wordpress Plugin : "All One Migration" That is easy to make backup and clone of website.
 
+1 for all in one wp migration.

Install the plugin, click save to file.

Make a blank WordPress installation on the new hosting, install the plugin, drag the downloaded file, the site appears as it was before.

Simple and very quick and idiot proof (I can use it ;) )
 
There are also folks on the marketplace here who offer services for things like this. At least there used to be, worth a browse if you're intent on cloning a site (which isn't the best route IMHO).

-ThopHayt
 
Could anyone provide detailed guide how to properly clone wordpress site and re-upload it to my hosting without further troubles with CSS, Images and generally website assets ?
Easy, use duplicator plugin. It will do everything, database, plugins, settings, the lot. You can use the free version, however I prefer duplicator pro for big sites. I use it all the time, it literally takes minutes
 
1. Go to your File Manager in cpanel.
Zip everything (the whole site) which is usually the first folder with the domain name.

2. Go to your phpmyadmin.
Export your database (you can find the name of the database inside wp config)

3. Unzip everything to your new hosting.
Import your database (and make sure you have a database user with the same password active, unless you'd like to create a new one and edit wp config).

4. Redirect the old domain with 301 redirects including the posts (everything all the links) to your new site / homepage.

Before doing all the above, go to wordpress Options and change Wordpress Address and Site Address to your new domain url.

Enjoy your brand new domain name.

Yes that's exactly how I do it if you want to proceed without a plugin. Normally I develop a new Wordpress site on a test system like test.domain.tld to copy it then to the live domain.tld.

One thing I would add if you use a new Wordpress domain is to replace the URL in the database wp_options table. Further you would need to replace the links in the Wordpress posts with a script like this:

Code:
UPDATE wp_posts
SET    post_content = replace(post_content, 'www.olddomain.tld/', '/')
WHERE  post_content LIKE '%www.olddomain.tld/%';
 
Yes that's exactly how I do it if you want to proceed without a plugin. Normally I develop a new Wordpress site on a test system like test.domain.tld to copy it then to the live domain.tld.

One thing I would add if you use a new Wordpress domain is to replace the URL in the database wp_options table. Further you would need to replace the links in the Wordpress posts with a script like this:

Code:
UPDATE wp_posts
SET    post_content = replace(post_content, 'www.olddomain.tld/', '/')
WHERE  post_content LIKE '%www.olddomain.tld/%';
Don't you use local host to build sites? So much easier, then use duplicator plugin and you can go live in minutes
 
Don't you use local host to build sites? So much easier, then use duplicator plugin and you can go live in minutes

Hm... no not yet, but would be something to think about. What would you say is the major advantage to develop on a local host these days?
 
Hm... no not yet, but would be something to think about. What would you say is the major advantage to develop on a local host these days?
You can test plugins, themes, php, CSS etc. Anything, and only you can see it. I build all sites on it. You also have a copy of the site for further testing. Keep the file from duplicator, so if something happens with the host you can just upload to another in minutes. Local host is free and you don't need a domain name to do it. Forgot to mention. If you have clients who want changes done, use duplicator and copy their site, install it on local host, work on it there and replace when done. Their site stays live while you work locally. I've just done a site with 1,000 posts no problems
 
Last edited:
You can test plugins, themes, php, CSS etc. Anything, and only you can see it. I build all sites on it. You also have a copy of the site for further testing. Keep the file from duplicator, so if something happens with the host you can just upload to another in minutes. Local host is free and you don't need a domain name to do it

Yes, thanks for your opinion. I think its just a matter of style. Since the hosting and domains are there anyway the only argument I would consider is that you can test and develop if there is no internet connected. But I think even thats limited because many plugins call other hosts.

But im looking forward to try local development for one of my projects just to give it a go.
 
Back
Top