301 Redirects - When and How to Use Them
Author: Guest
Total views: 65
Word Count: 369
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 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.
.htaccess 301 Redirection
The .htaccess file needs to be placed 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 +FollowSymLinksRewriteEngine 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 'Apply'
That is all there is to it.
There are other methods in addition to set up a 301 redirection which include coding for ASP, ASP.NET, Java, CGI, Cold Fusion and Ruby on Rails. The above are the most common that I've encountered. When set up correctly, a 301 redirect will preserve your search engine rankings when it is necessary to move files around or switch, or consolidate, domain names.
Article Source: Websites Melbourne
About the Author
Rating: Not yet rated
Comments No comments posted.
Add Comment
You do not have permission to comment. If you log in, you may be able to comment.Copy and Paste Article Code.
Remember: The article body, title, author bio and links may not be changed or removed. By publishing this article, you agree to all the terms in our Terms of Service.
More articles in this Category
1: Myth Busting the Duplicate Content Myth
2: Writing For Online
3: A Simple Low Cost SEO Plan That is Highly Effective Too
4: 5 Steps to Impress First Time Site Visitors
5: Improve Your Online Money Making Opportunities With Organic Search Engine Optimization
Main Menu
HomeLogin
Register
Submit Article
Latest Articles
Search
Pages
linksLinks
Adult Shopsex toys | dildos | egg vibrator | penis pumps
Site Stats
Total Category: 5Total articles: 24212
58 users online.
