SEO Tips: A reasonable solution to the top-level domain name and www domain name problem

Source: Internet
Author: User

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

In our usual SEO often encounter **.com rankings run to www.**.com front, in fact, such harm is very serious, and some webmaster will use the absolute path of the method, that is, the address of the page appears all use http://www.**.com this way to let Baidu distinguish the main domain name, Google by selecting the default domain name to achieve the main domain name ranking. For Google, it's okay to say that using webmaster tools can be achieved. But Baidu often encounters the change domain name or this machine test inconvenient and so on question.

The second method is not to resolve the domain name without www, but this is not conducive to user experience and waste of the top-level domain name weight. Personally think the best way is to use 301 without the WWW domain name jump to the domain name with the WWW, such benefits have three points, one can open the site, the second to prevent Baidu included without the WWW domain name caused by Web site article duplication, three effective use of top-level domain name weights.

Let's talk about the 301 approach.

1. New station A site redirection, note that the permanent redirection of resources here to select. (New station One site uses the system resources and the website generally does not cache to turn slow.) Suggest a third method)

  

2. Users who support. htaccess can add code to implement

# URL Canonicalization

Rewritecond%{http_host} ^0531fk.cn [NC]

Rewriterule ^ (. *) $ http://www.***.cn/$1 [l,r=301]

3. IIS host users can use ISAPI rewrite to implement 301 redirection of domain names

  

Method:

# Isapi_rewrite 1.3 Version (302 status code)

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

Rewritecond Host: ^***\.cn$

Rewriterule (. *) http\://www\.***\.cn$1 [i,r]

# Isapi_rewrite 2.x version

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

Rewritecond Host: ^xok.la$

Rewriterule (. *) http://www.***.cn$1 [I,RP]

# Isapi_rewrite 3.0 Version

[Sapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

Rewritecond%{http:host} ^0531fk.cn$

Rewriterule (. *) http://www.***.cn$1 [nc,r=301]

ps:http://www.isapirewrite.com/here is the official web site recommended to use 2. X version to achieve because the 1.3 version of the old return spider code is 302 status code, as for 302 of the harm here is not much to say, in short, very serious.

I have tried this method is very effective and useful to solve the site duplication problem, solve the user experience problem, solve the problem of weight wasting.

This article original http://www.0531fk.cn reprint please indicate thank you

Related Article

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.