GS SEO Club
Subscribe:

Wednesday, November 2, 2011

URL Redirection and types of Redirect a URL.

Redirection is the way that send user and search engines on a different URL. This is the process that forwarding one URL to a different URL.


A exp. will help you to understand what is URL redirection.
When your open

http://www.abc.com/

it redirect on

http://www.xyz.com/

There are some types of URL Redirection that are helpful to forwarding one URL to a different URL.

URL Redirection is the process that forward users and search engines on different URL. Some types of redirection are:

1. Permanent Redirection 301:


301 is a Permanent Redirection that pass the value between 90 to 99% on redirected page. Some 301 redirect codes are:

ColdFusion Redirect
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com">

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

ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%>

ASP .NET Redirect
JSP (Java) Redirect
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );
%>

CGI PERL Redirect
$q = new CGI;
print $q->redirect("http://www.new-url.com/");

Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.new-url.com/"
end

2. Temporarily Redirection 302:
302 Redirection is Temporarily Redirection that can not pass the value of link. It has tow versions and that are:
  • 302 found(HTTP 1.0)
  • 307 (HTTP 1.1)

  • 302 found(HTTP 1.0): This is the Temporarily Redirection and pass 0% of link juice that is now helpful for increase web site keyword ranking power. In most of the cases should not be used.
  • 307 (HTTP 1.1): 307 HTTP 1.1 is the successor of 302 redirefction and also best to use a 301. It can moved the content only temporarily and has already identified by the search engines as HTTp 1.1 compatible. It is best to use 302 Redirection.
3. Meta Refresh Redirection:
Meta Refresh Redirection pass the instructing to web browser to automatically refresh the current web page or frame after a given time interval. A best Exp. of Meta Refresh Redirection use blow code in porshan.

Use this code in the

This code can redirect after 5 sec.

blog comments powered by Disqus

Popular Posts