Very often, as a freelancer, I need to transfer WordPress blog. First, I design a blog on my server, then I add posts and content, and on the and I need to transfer the blog to a new domain. So how to transfer a blog from an old domain to a new domain?
Let we see :
Step 1: We have :
Old blog: www.oldblog.com/blog
New location: www.newblog.com
Copy all files from the old blog directory www.oldblog.com/blog into your hard disk. Go to Phpmyadmin and export the 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 the new blog.
Step 4 :
Go to PhpMyAdmin of the new site and import the full wp1.sql file from the old site. Now you created a new database.
Now add in wp-config file this code below this details :
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 it.