Just what is a 301 Redirect?
There seems to be a lot of confusion as to what to do when you move, delete, or want to redirect incoming web traffic from an 'old' web page to a 'new' web page. A 301 redirect is the most sufficient formula for web page redirection from an old web page to a new web page location. There is also some confusion as to how to handle the unblemished move or redirection from one web domain to another web domain. Agreeing to Google, "If you need to turn the Url of a page as it is shown in crusade engine results, we recommended that you use a server-side 301 redirect instead."
Server Rails
How to Set Up a 301 Redirect
Depending on your web environment, there are any methods to set up a 301 redirect. A 301 redirect is not that hard to implement and it should sustain your crusade engine rankings for that single page or web domain.
.htaccess 301 Redirection
The .htaccess file needs to be settled in the root directory of your old website. In this example, we are redirecting incoming web traffic from an old domain to a new domain.
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) [http://www.newdomain.com/] [R=301,L]
The .htaccess file is the most base formula used for 301 web site redirection.
Php 301 Redirection
You would place this code in a file at the old location.
Header( "Http/1.1 301 Moved Permanently" );
Header( "Location: [http://www.new_location.com]" );?>
Of procedure with any code, you will want to test this.
Iis 301 Redirection
In Internet Services Manager, you need to right click on the file or folder you wish to redirect go for the radio button titled "a redirection to a Url". Enter the redirection web page Check "The exact Url entered above" and the "A permanent redirection for this resource" Click on 'Apply'
That is all there is to it.
There are other methods in expanding to set up a 301 redirection which contain coding for Asp, Asp.Net, Java, Cgi, Cold Fusion and Ruby on Rails. The above are the most base that I've encountered. When set up correctly, a 301 redirect will sustain your crusade engine rankings when it is critical to move files nearby or switch, or consolidate, domain names.
301 Redirects - When and How to Use ThemRelated : memory ram book acknowledged Rackmount
ไม่มีความคิดเห็น:
แสดงความคิดเห็น