So what exactly is 301 redirect ?
301 redirect means that your web page / web site has moved to a new location. 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It’s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it’s the safest option. The code “301″ is interpreted as “moved permanently”.
Take for example, you were having a page www.abc.com/alpha.asp, but webmaster of this website decides to replace this page ( with another page) due to their own technical/business preference.
What are some reasons you might want to move a Web page/ url permanently?
a) Website owner decides to change the technology and is moving website to an ASP.NET server, rather than an existing ASP/Windows server.
b) A new updated page ( in different location ) has to replace the old existing one.
c) If you have canonical issues and would like to resolve misplaced inbound links to different versions of your domain name then you will want to use a 301 redirect.
What would happen, if you remove/replace page directly ?
If you directly remove this page from your website you will face following difficulties :-
a) You will loose SEO rankings ( on Google/Yahoo) associated with that particular page.
b) You will also end up loosing online relationship with other website where you might have submitted your page in the page. Other website owners will delete your web page if your page is throwing a 404 error ( file not found error ).
301 redirect gives you an opportunity to inform both Visitors , and Search Engines about the new location of your page. Whenever somebody types in www.abc.com/alpha.asp, it will automatically move them to new page www.abc.com/beta.asp. Moreover Search Engines will transfer ranking power from old page to this new page.
How can you implement 301 redirect to replace old pages with new one ?
Below are a Couple of methods to implement URL Redirection
IIS Redirect
-
In internet services manager, right click on the file or folder you wish to redirect
-
Select the radio titled “a redirection to a URL”.
-
Enter the redirection page
-
Check “The exact url entered above” and the “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://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/”);
Is there any other functionality/usability of 301 redirect ?
Yes, it can even help you redirect your old domain to a new domain.
You need to create a .htaccess file ( This .htaccess method of redirection works only on Linux servers having the Apache Mod-Rewrite moduled enabled.) with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newwebsite.com/$1 [R=301,L]
Please REPLACE www.newwebsite.com in the above code with your new domain name.
Moreover, you should try to contact existing backlink websites to modify their backlink and point to your new website. Once 301 domain redirect is detected by search engines, they will transfer ranking power from your old domain towards redirected new domain ( * search ranking results can variate depending upon various factors)
0 comments:
Post a Comment