Thursday, May 28, 2009

Search Engine Friendly URL redirection - 301 Redirects


Reasons for 301 redirects
301 redirect is the most efficient and Search Engine Friendly method for web page redirection. There are many reasons for 301 redirects.

  • Changes in the URL. URLs might change because of changes in the file names of your website. For example, yoursite.com/mypage.html might be changed to yoursite.com/MyPage.html .If the old URL is indexed in search engines or lives in bookmarks, will create 404 error page resulting in loss traffic.


  • Another reason where 301 redirects are used would be, when you have more than one domain for the same site. It is better to redirect all the other domains to the primary domain using 301 redirection.


  • Changing the domain name. If you wish to change the existing domain and use another domain it is better to do 301 redirect to the old domain. The importance of this 301 redirection is that we can transfer the link juice or the google pageRank to the new domain. If the link juice will be lost resulting in loss of traffic and advantage of ranking higher on google.


301 redirects



PHP Redirect
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

0 comments:

Post a Comment