This post is an update to an earlier one on the same subject. After having moved a few wordpress blogs I think this one is easier to follow.
Please note that all instructions here are assuming that you have cpanel access to your server and that its a fresh installation (read all files on your server will be overwritten)
- Install Wordpress on the new domain
cpanel > fantastico > Wordpress blog (I’m assuming install into your root folder) - Copy all these folders frok your old domain to your new domain: wp-admin, wp-content, wp-includes plus any folders you might have created your self such as reports, images etc. by creating a zip file or using FTP.
- Backup old database and import it to the new database
create a backup of your database cpanel > backups > (under Download a MySQL Database Backup) wrdp1 > (save to your PC) wrdp1.sql.gz - Update the database with you new domain name.
Goto new database cpanel > phpmyadmin > yr-username_wpdp1 > SQL tab
issue these actions one at a time (copy and paste into the SQL window and change domain names then click GO):
UPDATE wp_options SET option_value = ‘http://www.new-domain.com’ WHERE option_name = ‘home’ OR option_name = ’siteurl’;
UPDATE wp_posts SET guid = ‘http://www.new-domain.com’;
UPDATE wp_posts SET post_content = ‘http://www.new-domain.com’;
Plesase note that the URL in the above 3 commands needs to be with or without www depending on how you use you domain name, if uncertain then run the with and without the www.
UPDATE wp_options SET option_value = ‘/your-absolute path/wp-content/uploads”) WHERE option_name = ‘upload-path’
Example for your path: /home/handsonim/public_html. After you have completed this I would recommend to browse the table wp_options (using phpmyadmin) and just check if there are any other values that might need changing. - Update forwarders
First test that your new site is working then forward your old domain name to your new domain to ensure people still find your site cpanel > Redirects (after the >> enter http://yr-new-domain.com) and choose as a permanent forward since this will ensure that browsers update their bookmarks also.
Also make sure your new site will be indexed by Google.
Do you need a detailed receipe for this procedure? As a member you can get your receipe, check out our membership page now.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
{ 2 comments… read them below or add one }
@Wolf, Thanks buddy this is really a big help to me. I’ve been search articles like this on the net and I’m glad I’ve found your post. Keep it up.
Thanks Caitlin, please note that I have added a link at the end of this post to ensure your new site is being indexed.