Redirect is a way to lead users and search engines to another url rather than actually which is requested for, this is usually done when the data is moved or the pages are expired. Redirect option is also present in email clients, it is similar to forward option. If you get a mail from abc@alpha.com and your mail id is xyz@alpha.com and you redirect the same mail to another email id then the email received will have from address like this:

From:  abc@alpha.com (by way of “your name” <xyz@alpha.com>)

Types of Redirect:

There are five types of redirects:

1. 301 Permanent Redirect:

This communicates that the document  at this address has permanently moved and hence the references to old address should be deleted and updated to new address. It also maintains search engine ranks.

USE:

  • If you want to delete a page then use 301 to forward the user to a logical location.
  • Even if you want to make a particular part of a document unavailable in favor of other, you can use 301 former to latter.

2. 302 Found(Temporary Redirect):          

This communicates that the document is temporarily moved. This means the old url can be brought back in future. This does not transfer any of the SEO juice and value of the original page.

USE:

  • If you want to test a page for client feedback then use 302.
  • If your site or page is under maintenance then 302 can be used.

3. 303 See Other:

To avoid book markings and refreshing pages  that have only one time data entry such as bill payments. This indicates that the information is received from you form by POST method and to avoid data accidents ,you can check the response by looking at the next url which shows the information using GET method. It also indicates that the resource has been replaced.

USE:

  • It is used by the web developers for credit card payments and  other payments .

4. 307 Temporary Redirect:

This is similar to 303, the difference is without changing the information submitted from one technique to another, it is submitted in the same technique used.

USE:

  • It is used by web developers.

5.  308 Permanent Redirect:

This is same as 307 but it is permanent redirect. You cannot  use the previous url again.

USE:

  • It is used by web developers.

Most useful and important redirects:

301 and 302 are most widely used redirects. They are defined by their server status.

For Example:

  • 301: “Moved 301 the data requested is assigned to new url permanently”.
  • 302: “Found 302 the data requested resides under different url however the redirection may be altered on occasion”.

There is also another type of redirection called Meta Refresh which is also used to a range.

Meta Refresh:

This is a browser based redirect. It is associated with pages that refresh after few seconds. These are mostly used at the payment gateways and should not be used unless there is a specific reason like this.

 Grow Your Business with Reseller Web hosting plans . – Host Department LLC

 

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Post Navigation