Very often as freelancer I need to transfer wordpress blog. First I design blog on my server, than I add posts and content and on the and I need to transfer blog to new domain. So how to transfer blog from old domain to new domain ?
Let we see :
Step 1 : We have :
Old blog : www.oldblog.com/blog
New location : www.newblog.com
Copy all files from old blog directory www.oldblog.com/blog into your hard disk. Go to Phpmyadmin and export full database to your hard disk.For example wp1.sql is your exported file.
Step 2 : In this step you need to copy all data from your hard disk to new blog.
Step 3 : Go to Cpanel (or site panel) of your new hostig and domain. Creta new database and new user and add all roles :
Step 4 :
Go to PhpMyAdmin of new site and import full wp1.sql file from old site. Now you created new database.
Step 5:
In this step we will edit wp-config.php file in new WordPress blog files.
Add username and password and database name in wp_confip.php file
Now add in wp-config file this code below this details :
define(‘WP_SITEURL’, ‘http://www.newblog.com’);
define(‘WP_HOME’, ‘http://www.newblog.com’);
Step 6 :
Now go to new blog newblog.com and there log in into WordPress site. Afther login go to plugins section and install : Search and Replace plugin.
Search for : oldblog.com/blog
replace with : newblog.com
This plugin will replace all mysql database words where you have your old blog name.
This is it. your job is finish.
Please write your comment and ask for more help if you need.