By Navneet Kaushal
Expert Author
Article Date: 2011-09-22
301 redirect is the answer to the frantic prayers sent by webmasters, when they were faced with the task of redirecting traffic from an old web page to a new one. 301 redirect is the not only the easiest, most efficient method for web page redirection, but it also preserves your search engine rankings for the page in question. The engines interpret the code "301" as "moved permanently". According to Google, "If you need to change the URL of a page as it is shown in search engine results, we recommended that you use a server-side 301 redirect instead."
The User and Engines Experience with 301 Redirects
In most cases, the users don't notice the URL redirecting to a new one. If they get the content they were looking for, they will not be affected by the redirect. The search engines follow the redirect 301 on a URL and de-index the old URL. Also, they pass the existing links to the new URL (not 100% of it though). Google says that a 301 can pass anchor text, but there are no guarantees. The engines also remove the old page from their index so that the users don't get to them, and have poor search experience.
Here is what Google has to say about 301 Redirects
The Best Times To Use A 301 Redirect
When You Are Moving Sites- this means that if you are changing your URLs to a new structure or shifting the site to a new location, then you must use 301 Redirect. If the move is due to a new design, the you don't want the engines to index the old pages. Read the Google guidelines on 301 redirects and their usage in the case of moving sites.
When You Have Expired Content- If you have a bunch of product descriptions/outdated news items or old terms and conditions that are useless for the users, then you must use a 301 Redirect. But before doing that make sure that you don't get any traffic from that content. In case of the traffic, redirect that page to a similar page on your site, so that you don't lose the traffic. Or is there a chance of the content becoming useful again ( if a product is revived in the case of e-commerce sites. ) Get these issues out of the way before you employ a 301 redirect.
However, if multiple versions were used to show users who are logged in or have cookies dropped, then 301 is not recommended.
How to Set Up a 301 Redirect
If you have a definite requirement, then you can use several methods to set up a 301 redirect.
1.) htaccess 301 Redirection
For this method, in the root directory of your old website, place the .htaccess file. See the example below, where traffic from an old domain is being redirected to a new domain.
Replace the www.newsite.com in the above code with your actual domain name. This is the easiest and most prefered method used for 301 web site redirection.
2.) PHP 301 Redirectio
For this method, you would place this code in a file at the old location.
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.newsite.com" );
?>
Replace the www.newsite.com in the above code with your actual domain name. Like with any code, you will test this.
3.) IIS 301 Redirection
Go to Internet Services Manager- then right click on the file or folder you wish to redirect
Click the radio button titled "a redirection to a URL".
Key in the redirection web page
Check "The exact URL entered above" and the "A permanent redirection for this resource"
Make sure that you do not get mixed between a 301 redirect instead. Remember that a 302 is meant to be used when content is temporally moved, 301 is for permanent redirects. Also make sure that you do not redirect all of the pages to a single URL, usually the homepage. This makes Google think that you are trying to consolidate all the link juice from multiple pages into one page. This can lead to a penalty.
Be careful and you will ensure a smooth 301 redirect. More on the same here.
Comments About the Author:
Nav is the founder and CEO of Page Traffic, a premier search engine company
known for its assured SEO service, web design and development, copywriting and full time SEO professionals.
Navneet has wide experience in natural search engine optimization, internet
marketing and PPC campaigns. He is a prolific writer and his articles can be
found in the "Best Articles" section of many websites and article banks. As
a search engine analyst , he has over 9 years of experience and his
knowledge is in application here.