I’ve just successfully transferred my old WordPress blog which is in the subdomain of /blog/ to a new domain (the current domain). This was done within the same host.
- First I used FTP to back up my old WordPress blog files to my laptop.
- Second I upgraded my old WordPress 2.6.1 to be the newest version WordPress 2.6.5.
- Third I logged in to my host’s cPanel/phpMyAdmin to export my old WordPress blog’s database to my laptop. See WordPress Backup with phpMyAdmin here.
- Next I created a new folder named wp for the new domain. I then created a robots.txt in wp folder with the following contents:
User-agent: *
Disallow: /This is to prevent any search engines to crawl my site before it is ready.
- Next I created a new database in my host cPanel for this new domain. See WordPress Tutorial: Setting Up A MySQL Database With cPanel here.
- Next I typed the url of my website in my browse to run the install and input the information I’v got from the last step to finish the installation.
- Then I edited wp-config.php file which should be in your root directory and changed the high-lighted parts with the information I’ve got earlier.
|
- Next I used FTP to upload all my old WordPress blog’s files to public_html/wp folder.
- Then I imported my old database to replace the new one I’ve created eariler. (if your database name, mysql username, and mysql password are the same as the old one, then you don’t need to do anything otherwise you have to change them before you can import it.)
- Then I logged in to my WordPress admin area and used Search and Replace plugin to search all my old WordPress urls in database to be replaced with my new urls.
- Then I double checked my website to see whether everything was working properly. After that I deleted the robots.txt file.
- Finally I added the following line in my old blog’s .htaccess file right after RewriteEngine On, see below
RewriteEngine On
RewriteRule ^(.*)$ http://www.yourdomainname.com/$1 [R=301,L]
You must change yourdomainname to be your actual domain name. Adding this line in my old blog’s .htaccess will ensure that all my old blog’s traffic will be redirected to my new blog with every single post I’ve created.
Any questions? or suggestions? Please share them with us.
Related articles
Transfer My Joomla! Website to a New Host
How to Transfer Your Joomla! Website to a New Domain?
| US $25.00 End Date: Wednesday Feb-15-2012 11:06:04 PST Buy It Now for only: US $25.00 Buy it now | Add to watch list |
| US $15.95 End Date: Thursday Feb-16-2012 5:36:55 PST Buy It Now for only: US $15.95 Buy it now | Add to watch list |



website browser wordpress domain links // Jul 10, 2009 at 1:10 pm
[...] http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html website browser wordpress domain [...]
Hi
Nice informative post indeed. I searched “transferring wordpress blog to new domain” in google and found your post URL at the top and landed up here. I would also like to transfer my blog to a domain. I decided to book my domain on Godaddy.com. Is it possible to transfer all my blog (http://susmita.wordpress.com) posts to the new domain. More important is is it possible to incorpoarate Google Adsense into the transferred blog.
Please help.
Thanks & regards
Susmita
Hello Susmita,
This post was written to transfer an old domain to a new one and it was done within the same host.
Your situation is to transfer a wordpress.com blog to a new self-hosted domain. So the following link can be helpful to you:
Moving a Blog/Moving to WordPress.org
If you have a self-hosted domain, there is no problem of incorporating Google Adsense into your blog.
Good luck!
» Moved I Think (And Hope!) // Nov 7, 2009 at 11:33 am
[...] in my wp-config.php file and voila! For now, at least, it’s fixed. Now I get to attempt at re-direct at my old blog url. Wish me [...]
Nice post.I’ll just find out this tutorial for my knowledge to do my own work.I will try this ….Thanks
Nice informative article. Thanks for sharing.
interesting and informative article. trying a few times and finally have it worked !
I am so glad to hear that. It feels so good that it can help!
Please contact me i would like to hire you to transfer my blog at wordpress.org to the domain. I just need to get rid of the /wordpress thing, I cant figure it out.
Thanks!
Johanna
Hi Johanna,
I sent you an email last week. I don’t know you’ve received it or not… Let me know.
Nice and informative website. I was having a hard time to transfer my blog to a new domain. Got a workaround here.
What about setting static network ports for NTDS & FRS replication, AD client authentication ? TimePhaseCorrection entries ?
I also set staging directory size for SYSVOL.
What is your recommendation on those?
I was searching for the same and landed here. Great article it is informative and i got the solution for my query. Keep it up.
This is a very straightforward post. Much appreciated!
Thanks for the help with transfering my WordPress site http://www.godspace.cc to it new location. I am using hostgator as hosting works better with my wordpress control panel to administer several site.
Want to note that after changing wp-config.php parameters for new database. I had to search site-url setting that were coded in the database wp_options table this page has the details https://flippa.com/help/transfer-a-wordpress-site
For me it was a little more complicated I had to exit the sql export file from previous site and put the new database name and user name into the file. Then when I imported sql database was loaded.
Check out my website new location and new domain name http://www.nyplace.org
Hope this helps,
Peter