This blog is not updated any more. Here's the new blog.


How To Transfer a WordPress Blog to Another Domain

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.

34 Boxes

Creative Commons License 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?

  1. We create a text file called robots.txt in 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)
  2. Copy the files that make up the blog and the database in the new domain.
  3. Edit the file wp-config.php to 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');
  4. 4th Now we have to replace all references to the old domain in the database, or using the Search and Replace Plugin
  5. 5th Delete the robots.txt file that we created in step 1
  6. 6th Using FTP colleghiamoci on the old domain and insert the following directive in your .htaccess
    Redirect 301 / blog / http://www.newdomain.com/
  7. 7th Remove the files and the database on the old domain
  8. 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.


Bookmark and Share

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

RaiulBaztepo Says:

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

PiterKokoniz Says:

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

Laidi Says:

Thank you, it was very useful :)

ekaitpc Says:

good info and keep bloggign

Comments are closed.