Make permanent 301 redirection for complete website

| June 8, 2008 | 4 Comments
email

As I said in my last post, I changed my hosting and domain too. BlogSolute.com was earlier called as TheWebdale.com so, I didn’t wanted to lose my existing visitors and search engine traffic. Hence, it was necessary to redirect website altogether on permanent basis.

Permanent redirection a.k.a (310 redirection) was the best option. These are redirections main feature that besides sending users to a new site, the search engines to tell you that that content was moved on a permanent basis and therefore, so that the application for indexing, and other indicators is page rank muffled.

You know the virtues of the file .Htaccess (sadly absent in many free services) for this case you reduce the task of properly redirect a website with just one line of code. Just add on .Htaccess the following code:

redirectMatch 301 ^(.*)$ http://www.newdomain.com $

Remove all text present in existing .htaccess file (if any) and relace with above code. That each page will be redirected to their counterparts in the new url, for example: www.domain.com to www.newdomain.com; www.domain.com/post to www.newdomain.com/post and as with all pages domain.


About the Author ()

Rohit Langde is editor-in-chief and owner of Blogsolute. He is Born-Geek and Technology Enthusiast. Being a blogger, he is also Mechanical Engineer who believes in simple Living. You can

Comments (4)

Trackback URL | Comments RSS Feed

Sites That Link to this Post

  1. Does Permanent 301 redirection affect Google PageRank? | Blog Solute | June 15, 2008
  1. Pavan Kumar says:

    Hi,

    Congrats on your new domain… Catch you soon.

  2. Daniel says:

    Como faço isso no wordpress?

  3. Rohit says:

    Daniel, .htaccess file is also in WordPress installation so, make changes as given in the post.
    Also, do comment in English only.

Leave a Reply