Hi, I am giving my mate a bit of a help out in my spare time to re-design his hobby website and I am going to use Wordpress as the platform. If I setup and customise a wordpress based site/theme on a spare domain name I have e,g. www my-spare-domain com and once it is finished and my mate is happy with it, how do I move it all across to replace his existing hobby website e.g at www my-mates-hobby-site com His current site is not a wordpress site? Thanks for any advice
As long as your mate is ready to embrace wordpress and ditch his non-WP site, moving in is as easy as pie. Search for 'xcloner' in the Wordpress Plugins site. It saved my a** a dozen times trying to move out from one hosting to another.
You basically need to: 1. transfer your wp-sources to the new location; 2. dump and restore the wp database to the new location and grant sql permissions to the database user; 3. change the main wordpress url to the new one in wp database. the step 3 may not be required if the url is changed before the data is transferred over to the new location.
download wordpress files and export database, upload them to the new server, import the database, change config.php file with new db credentials. If you need to also change the domain of the site, open up PHPMyAdmin, execute down following queries(replace with your own domains): UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); Code (markup):
You guys are making this to complicated. Step One - Download all files in /public_html/ directory Step Two - Export database via PHPMyAdmin Step Three - Reupload contents of /public_html directory to new host Step Four - Re-create and upload the database via PHPMyAdmin Step Five - Edit wpconfig.php file with new database details if any have changed.