With 301 directional Call website PR fly up

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

301 REDIRECT webmaster to increase PR good helper!

What is 301 turn?
301 Turn (or call 301 Redirect, 301 jump) is one of the status codes in the header information (header) in the HTTP data stream returned by the server when the user or search engine sends a browse request to the Web server, indicating that this page is permanently transferred to another address.

Other common status code also includes, 200 means all normal, 404 Web pages can not find, 302 temporary turn, and so on.

Why do you want to do Web site turn?
In addition to the Web site normalization issues described earlier, there are a lot of situations that need to be turned on. For example, to protect copyright, you have multiple domain names for different TLD:
Xinzol.com
xinzol.cn
xinzol.com.cn
newzol.cn
Good521.com
Wait a minute.
If you point to all a website. If you use Xinzol.com a website. What would you do, you might say that are bound to a space not on the line, but you think that even if you can bind, that search engine included is not affect it! Search engines will be included according to different engines! thereby reducing the main domain of the PR, if the use of 301 directional, these problems can be a good solution, and will be included in a main domain name included!

There are many ways to turn, why use 301?

Web site steering methods mainly include: 301 turn, 302 turn, JavaScript turn, php/asp/cgi turn, meta-refresh web meta refresh, etc. The 302 steering may have URL normalization issues. Other methods are commonly used cheating, of course, not to say that can not be properly used, the method itself is not wrong, but the cheater used more, the search engine for these suspicious turn are very sensitive. Why take the risk?

When page A is redirected to page B with 301 redirects, the search engine can be sure that page a permanently changes location, or that it doesn't actually exist, and that the search engine will use page B as the only effective target. The advantage is, first, there is no website normalization problem, second, also very important, page A's PR page level will be uploaded to page b.

Many times other websites link to

Http://xinzol.com
Http://www.xinzol.com/index.html
Http://xinzol.com/index.html

Not what you want.

Http://www.xinzol.com

This link to the PR will also be passed to all URLs, if you use 301 to turn the top three URLs to
Http://www.xinzol.com
PR also concentrates on the webpage http://www.xinzol.com.

302 redirect can affect search engine optimization effect
To date, only Google has been able to handle 302 redirects with exceptional capabilities. In other words, when the site uses the 302 redirect command to point other domain names to the primary domain, only Google will be the other domain name link scores into the main domain, while other search engines will only be linked to multiple domain name allocation, thereby weakening the main station link total. Since as a key factor in the ranking of the site of the number of the chain has been affected, the site rankings are also very natural things to reduce.
To sum up, in many redirect technology, 301 Permanent Redirect is the safest way, but also a very ideal solution.


For friends with 301 redirects, there are several ways to refer to them (on the Internet):

If you are using a UNIX host and support the. htaccess file, add the code implementation to the file.

For example, to transfer/old.htm to http://www.xinzol.com/new.htm, you can use this command:

REDIRECT 301/old.htm http://www.xinzol.com/new.htm

Or

REDIRECT Permanent/old.htm http://www.xinzol.com/new.htm

If you want to redirect all http://xinzol.com form URLs to http://www.xinzol.com with 301 redirects, include:

Http://xinzol.com/about.htm
Go to Http://www.xinzol.com/about.htm

and

Http://xinzol.com/dir/index.htm
Go to Http://www.xinzol.com/dir/index.htm

And so on, and mod_rewrite:

Options +followsymlinks
Rewriteengine on
Rewritecond%{http_host} ^domain.com [NC]
Rewriterule ^ (. *) $ http://www.xinzol.com/$1 [l,r=301]

If you are using a Windows host, you should make a 301 turn setting in the Control Panel.

Add: In the Web site normalization comments to answer the question of Stone King, may be helpful to everyone:

As far as I know, html can't do 301 turns. Only JS or meta REFRESH can be done in HTML, but not 301 turn. Once the HTML has been read, it has returned to the OK status code.

If your page is ASP or PHP can also do 301 turn:

ASP:


<%
Response.status= "Moved Permanently" Response.AddHeader "Location", "http://www.xinzol.com"
>

PHP:

Header ("http/1.1 moved Permanently");
Header ("location:http://www.xinzol.com");
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.