Thursday, July 22, 2010

Comprehensive understanding of redirection 301



What is a 301 turn?

301 turn (or call 301 redirect, 301 jumps) is when a user or search engine sent to the web server browse requests, the server returns the HTTP data stream in the header information (header) in a status code that the page permanent transfer to another address.

Other common status codes include 200, everything is normal, 404 pages found, 302 temporary shift, and so on.

Why do at turning?

In addition to the Web site introduced in front of standardization issues, there are many needs to be done at turning the situation. For example, for the protection of copyright, you have several different TLD domain name:

company.com

company.net

company.org

company.com.cn

company.cn

And so on.

Naturally all of these domain names point to a website. Mainly use company.com as domain name, you can turn to the other domain company.com.

Registered company name or your domain name longcompanyname.com, but too long, you register a domain user to remember acronym lcn.com, one of the domain name call the shots, the other can turn to the main domain name.

Why use 301 turn?

Website shift methods include: 301 turn, 302 turn, JavaScript turned, PHP / ASP / CGI turn, META REFRESH META refresh the page, and so on. URL 302 may be turned Standardization. Other methods are commonly used cheating methods, of course not saying that can not legitimately use the method itself is not wrong, but it was cheating to use more, search engines are sensitive to these suspicious move. Why risk it.

When using a 301 redirect page A to page B, page A search engine can be sure to change the location of a permanent, or that does not actually exist, the search engine will bring web B as the only valid goal. Advantage is that, first, there is no standardization issues at the second, and very importantly, the PR web pages A-level will be reached page B.

Often linked to other sites

http://domainname.com

http://www.domainname.com/index.html

http://domainname.com/index.html

Not you want

http://www.domainname.com

This link will pass PR to all URL, if you turn 301, the first three URL Go

http://www.domainname.com

PR has also focused on web http://www.domainname.com.

How to determine site URL Normalization?

There is a saying in English, something is not broke do not fix on. Many sites do not shift position 301 did not affect, then do not touch it.

If you think your site's ranking is not expected, they could see if there is at standardization issues:

1) check whether the URL has a similar PR value and cached:

http://domainname.com

http://www.domainname.com/index.html

http://domainname.com/index.html

http://www.domainname.com

If so, it may be a problem.

2) Search about site: domain.com to see if the results have more than one page version.

3) Your site is a large number of pages in Google have been marked as "supplementary material" (Supplemental Result). Generally considered to be classified as "supplementary material" is a symptom of Web Standardization.

How to do 301 turn

If you are using a Unix / Linux host, you can use the file (Unix / Linux in a specific order for the directory, such as passwords, steering, error handling, etc. files).

Such as the / old.htm to http://www.domain.com/new.htm, can use this command:

redirect 301 / old.htm http://www.domain.com/new.htm

Or

redirect permanent / old.htm http://www.domain.com/new.htm

If all http://domain.com forms of URL redirect with 301 to http://www.domain.com, including:

http://domain.com/about.htm

Go http://www.domain.com/about.htm

And

http://domain.com/dir/index.htm

Go http://www.domain.com/dir/index.htm

Etc., but also use mod_rewrite:

Options + FollowSymLinks

RewriteEngine on

RewriteCond% (HTTP_HOST) ^ domain.com [NC]

RewriteRule ^(.*)$ http://www.domain.com/ $ 1 [L, R = 301]

If you are using a Windows host, be turned 301 in the control panel settings to do.

Add: standardization of the Web comment in answer to the question the king stone, may be helpful:

As far as I know, HTML can not do 301 shift. Can only be done in HTML, JS or META REFRESH, but not the 301 turn. HTML one is read, it has returned a 200 OK status code.











Recommended links:



best video FORMAT



Bluesea Zune xBox 360 Wii Converter



Deletion Of Posts By The Company, "3.15" Price Hike: Prices Starting At 20,000 Yuan



flv to MP3



Thread termination



Comment Terminal And Telnet Clients



Picked Install And SETUP



Youtube to H264 Today



convert flv to wmv



Convert 3gp to wmv



Hot Themes And Wallpaper



Open MP4 Converter



JSP List of wrap SOLUTIONS to the problems



Beijing Grand Century Ocean Ka Hei signed real estate brokerage industry Co., Ltd.



DvdXsoft iPod Video Converter gold new



No comments:

Post a Comment