Trending this month



February 7, 2011

301 Redirect Vs 302 Redirect :

A 301 redirect means that the page has moved to a new location, permanently. A 302 redirect means, that the move is temporary and 301 are are permanent redirects from an old URL to a new one. These redirects tell the search engines that the old location is to be removed from their index and replaced with the new location. Using 301 redirects is the most search engine friendly way to redirect traffic and engines, and far out weighs that of various JavaScript and Meta refresh redirects


There are several reasons to use URL redirection:

Similar domain names

A user might mis-type a URL—for example, "example.com" and "exmaple.com". Organizations often register these "mis-spelled" domains and re-direct them to the "correct" location: example.com. The addresses example.com and example.net could both redirect to a single domain, or web page, such as example.org. This technique is often used to "reserve" other top-level domains (TLD) with the same name, or make it easier for a true ".edu" or ".net" to redirect to a more recognizable ".com" domain.
Moving a site to a new domain
A web page may be redirected for several reasons:
  • a web site might need to change its domain name;
  • an author might move his or her pages to a new domain;
  • two web sites might merge.
With URL redirects, incoming links to an outdated URL can be sent to the correct location. These links might be from other sites that have not realized that there is a change or from bookmarks/favorites that users have saved in their browsers.
A permanent 301 redirects are by far the most common. When using them you are telling the search engines “do not come back to this location, the page has permanently moved.”All three search engines handle 301 redirects the same. If Site A is 301′d to Site B, then Site B will show up in the search results and Site A will ultimately be completely removed.
Page Deleted or Moved
Probably the most common use is the moving or deletion of a single page. Let’s say that you are no longer selling a specific product and therefore have no need for its page. Using a 301 redirect to send the spiders to either the next closest product, or to a relevant product list would be of far more value then having your site return a 404 error and sending users to an error page.

WWW vs Non-WWW 

This is now one of the most common uses of a 301 redirect when used in combination with Mod Rewrites. Essentially by using a permanent 301 redirect to send traffic destined to the non www version of your site (site.com) to the www version (www.site.com) you can focus the strength and prevent page rank split, giving your site’s home page (and internal pages) a nice little boost.

Under Creative Commons License: Attribution