Search engine optimisation is a key factor for all commercial sites. Having your potential customers being able to find you via the most popular search engines is crucial. Being high on these search engines can also give you an advantage over your competitors. It is found that those who are on the first 2 pages of search engine results for key words will get more clicks then the sites on all the other pages (3 and above) put together.
If you are moving your site, renaming it or changing the URL structure, you run a risk of losing your search engine position. Having a 301 redirect is the most efficient and search engine friendly method for webpage redirection from your old site to your new one. Below are a few methods to implement URL redirection.
IIS Redirect
In Internet Services Manager, right click on the domain (or file or folder) you wish to redirect
Select "a redirection to a URL"
Enter the redirection address
Check "The exact URL entered above" and "A permanent redirection for this resource"
Click on "Apply"
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://new-url.com");
?>
ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://new-url.com"
%>
ASP .NET Redirection
JSP (Java) Redirection
<%
response.setStatus(301);
response.setHeader("Location", "http://new-url.com");
response.setHeader("Connection", "close");
%>
CGI Perl Redirection
$q = new CGI;
print $q->redirect("http://new-url.com");
Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://new-url.com"
end
Linux .htaccess Redirect
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://new-url.com/$1 [R=301,L]
If you are moving your site, renaming it or changing the URL structure, you run a risk of losing your search engine position. Having a 301 redirect is the most efficient and search engine friendly method for webpage redirection from your old site to your new one. Below are a few methods to implement URL redirection.
IIS Redirect
In Internet Services Manager, right click on the domain (or file or folder) you wish to redirect
Select "a redirection to a URL"
Enter the redirection address
Check "The exact URL entered above" and "A permanent redirection for this resource"
Click on "Apply"
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://new-url.com");
?>
ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://new-url.com"
%>
ASP .NET Redirection
JSP (Java) Redirection
<%
response.setStatus(301);
response.setHeader("Location", "http://new-url.com");
response.setHeader("Connection", "close");
%>
CGI Perl Redirection
$q = new CGI;
print $q->redirect("http://new-url.com");
Ruby on Rails Redirect
def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "http://new-url.com"
end
Linux .htaccess Redirect
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://new-url.com/$1 [R=301,L]








0 Comments:
Post a Comment
<< Home