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 efficient method 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 complete move or redirection from one web domain to another web domain. According to Google, "If you need to change the URL of a page as it is shown in search engine results, we recommended that you use a server-side 301 redirect instead."
How to Set Up a 301 Redirect
Depending on your web environment, there are several methods to set up a 301 redirect. A 301 redirect is not that hard to implement and it should preserve your search engine rankings for that particular page or web domain.
…show more content…
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/]$1 [R=301,L]
The .htaccess file is the most common method 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 course 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 Select 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