tips,wordpress

Moving your wordpress blog from one domain to other

24 May , 2009  

wordpress icon 150x1501 Moving your wordpress blog from one domain to other

Heya Folks,

Well shifting or moving your blog from one domain to another is not easy task but with the continous upgradation on wordpress‘s core install the things are also not that difficult. The built-in import export feature in wordpress is the real saviour in this process. Follow the steps below and you should be good.

1) After setting up your domain on the hosting service, create a file robots.txt and type in the following lines.

User-agent: *
Disallow: /

This will disallow search engines to crawl your new domain, until you setup the new domain of yours.

2) Now goto the old blog and in the admin panel, click on “Export” under the Tools menu. It will ask if you want to export for a certain author or no. This is basically useful in multi-user blog. Choose as required and hit “Download export file

3) Now lets login into new blog and under the same tools menu inside Admin panel, click import. Now supply the downloaded file and click import.

4) After this you will be asked if you want to download the files associated or no, its recommended to check the option, especially if you do not want the old domain to continue.

5) Now you have all the data and configuration ready, lets install all the plugins same as the old blog, I would simply copy the plugins folder on the new blog install folder. Some plugins might ask you API keys or other configuration and that can be sorted out easily using the Admin panel.

6) Install the plugin Search and Replace this will help you remove the traces of your old domain and replace it with the new one, probably you wanna do it for the links and all.

7) Now the final step, redirecting the old users, search engine crawlers, bots, so as to retain the SEO juice of your old website and pass on to the new domain. Two simple lines (typed below) in the .htaccess does the trick.

RewriteCond %{HTTP_HOST} ^.*old_domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.new_domain.com/$1 [R=301,L]

8 ) Finally submit the new domain or blog to various search engines, and list it in the directories. Publish feeds using feedburner , add it to google webmasters tools, Google Site Analytics, Yahoo Site Explorer and that should be all for the quick startup. Later on you can keep on adding stuff.

9) Another suggestion is to remove your old blog’s content because search engines crawlers add weird with the duplicate content, I do understand the concept of canonical but still I dont wanna take the risk icon razz Moving your wordpress blog from one domain to other

Hope this helps.

Cheers!!
Realin !

, ,


17 Responses to “Moving your wordpress blog from one domain to other”

  1. AnkurG says:

    Good post indeed..
    If I’m not wrong you have transferred to domain?

  2. yeah dude i have just moved my blog to this new domain :)

    Hope all the visitors like this change

  3. [...] moved all my blog post to this new domain. Moving whole blog across the wordpress is an easy task (read here to know more), but some times things get weird. When I moved my blog everything was working awesome and this [...]

  4. [...] love the content of my website, so i never wanted to lose them with this shift. I have explained how to move your wordpress blog to another domain in one of my previous blog entries and in this post I am gonna explain how can you retain the feed [...]

  5. Hello sachin,

    Thank you provide nice information. I have a free wordpress blog that is http://anil2u.worddpress.com , now i am taken own domain http://www.anil2u.info , i want to redirect the old to new blog using htaccess, can it possible. if yes please help me.

  6. Hi Anil,

    This can be done by any redirect plugin, if they allow you to install that. Otherwise you can use the domain mapping service provided by wordpress, follow this link
    http://en.blog.wordpress.com/2006/10/24/domain-mapping-registration/

  7. Chong says:

    Hi,

    I’m planning to use a new domain and discard the current one. But the files will remain intact in the same server. So, should I be following the steps listed above? Or should I just edit the URL setting in Administration section of the old domain / blog to a new domain as well as edit wp_config.php file?

  8. yeah if you are using wordpress’s export then it should import all your media files.

    Setup the new domain once using the above step and then delete the old domain’s files.

  9. Chong says:

    Will number of visitors drop when one shift to a new domain? As in through search engine since PR will drop as well.

  10. If re-direct is set property then the Users are redirected properly and so are the search engine crawlers.

    Also there is an option in google webmasters to let know google that you are moving.

    Here is the help link.

    http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=83105

  11. Chong says:

    After submitting my new domain and all to Google Webmaster Tools, I realised that I can’t search my website in Google. Normally, how long does it takes to appear in search engine?

  12. @Chong Well that certainly depends upon Google, they do not specify a time frame, but it should be done gradually.

    I kept the redirect on for an year or so and trust me did not lose traffic at all.

  13. Chong says:

    I see. If there’s no robot.txt in my directory, does that mean the bots are allowed to crawl around my site?

  14. By default Google will, by robots.txt you can control if you do not want google or other search engines to crawl certain part of your site.

    There is a tool inside webmasters to create a customized robots.txt.
    here is an example http://www.digimantra.com/robots.txt

  15. Chong says:

    Thanks! You’ve been a great help. Appreciate alot.

  16. Varinder says:

    Hi Sachin,
    We are planning to move our current blog on wordpress to our site. I want to move my older blogposts as well to the new blog because we do not want to lose our traffic. Rather than buying domain mapping service, can i just write a snippet (maybe first paragraph) for every blogpost and leave a link “Read full article here” on the older blog that takes user to our new blog.

    Do you think it is acceptable to search engines. I do not want my blog to get penalized for duplicate content. Reply soon.

More in tips, wordpress (152 of 159 articles)


A very simple way to secure your wordpress's folders from being exposed to the public is to create an index ...