ThisIsMyLife
Power Member
- Apr 21, 2018
- 768
- 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 ?
Accordingly, How it will be look like if its static ?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 ?
Okay thanks a lot have a nice dayIdentical 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.
BAckupBuddy -->manually create DB and use their php importerCould 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.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 minutesCould 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 ?
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.
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 minutesYes 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
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 problemsHm... 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