This blog is not updated any more. Here's the new blog.
Suppose that the domain where you have to grow your blog you have tired, you've found something better, you have created the domain of your business and want to transfer the domain there to better manage your publications ... In short, you want to transfer your WordPress blog to another domain.
photo credit: modernangel
Let's start!
How? And most importantly, how to avoid losing all the visits that you have currently on your site from search engines and referrals?
- We create a text file called
robots.txtin the root and save the new domain, with the following content:
User-agent: *
Disallow: /
so that the contents are not indexed by the engines (until we have finished the setup) - Copy the files that make up the blog and the database in the new domain.
- Edit the file
wp-config.phpto reflect the changes introduced, and in particular the parameters
Db_name,db_user,DB_PASSWORD,db_host.
Add the following instructions:
define ( 'WP_SITEURL', 'http://www.nuovodominio.com');
define ( 'WP_HOME', 'http://www.nuovodominio.com'); - 4th Now we have to replace all references to the old domain in the database, or using the Search and Replace Plugin
- 5th Delete the
robots.txtfile that we created in step 1 - 6th Using FTP colleghiamoci on the old domain and insert the following directive in your .htaccess
Redirect 301 / blog / http://www.newdomain.com/ - 7th Remove the files and the database on the old domain
- 8th If we have a FeedBurner account, change the reference to the domain to keep the subscribers to the feed reader.
Done!
At this point everything should be in place: the search engines aim to old pages still slowly but the addresses will be updated through the 301 redirect. The readers will be redirected automatically, and the subscribers to the feed will not notice any change .. except of course the new domain.
March 28th, 2009 at 23:08
Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language ![]()
See you!
Your, Raiul Baztepo
April 8th, 2009 at 00:05
Hi ! ![]()
My name is Piter Kokoniz. oOnly want to tell, that I like your blog very much!
And want to ask you: is this blog your hobby?
Sorry for my bad english:)
Thank you!
Your Piter Kokoniz, from Latvia




4 Comments for the post “How To Transfer a WordPress Blog to Another Domain”