Analyze the importance of the preferred domain to the weight of the site

Source: Internet
Author: User
Tags ini root directory

What is the preferred domain, let's take a look at an example:

We visit a XXX site generally there are two ways: access to the domain name: www.xxx.com or access to the domain name: xxx.com can be reached. Since there are two different ways to get to the same site, then the search engine crawling our site

Hou will also have the above mentioned two methods, then the weight of the site in the search engine will be split. In order to make the weight of the site more concentrated, more higher to produce a preferred domain this term.

The preferred domain is to place the weight of the site from the domain name with www and the domain name without the WWW, one of which is the preferred domain of this site.

In fact, in the present, some very large and famous sites they are not doing the preferred domain of this work, such as ADMIN5 webmaster Network, Chinaz Webmaster Network, Sina and so on. They these sites daily traffic is very large, well-known very high, do not do with the preferred domain I think the impact on them will not be very large, but as a small and medium-sized webmaster, this step can not be ignored. Some times in front of some competitors is often because of this small detail in the search engine rankings behind others.

The importance of the site's preferred domain is not what I said personally, even Google, the network giant is quite agreeable. Trust webmaster in the maintenance of the site will be used in Google Web site management tools, this tool has involved the problem of the preferred domain, everyone's website can also be here to set its site's preferred domain.

So what's the way to set a site's preferred domain? I have summed up two points:

1:google Web Site Administration Tools

Register to login Google Web site management tools, in its background of the Web site configuration can be set within the settings, but to set the success of the need for the domain name with the WWW and without the WWW domain name are verified, this is more difficult for beginners. (Do not understand can contact QQ1587671090)

Advantages: Convenient and quick, does not involve the code.

Disadvantage: It is difficult to verify the site, and this setting only works for Google search engines, other search engines do not work.

2: Through the. htacess or Httpd.ini settings

. What's the difference between htacess and Httpd.ini? Htacess and Httpd.ini are basically no different,. Htacess works in Liunx and Apache servers, and Httpd.ini works in Windows environments, and they are written in the same way as they do to the site, except for the name.

. htacess or Httpd.ini:

The following are the referenced contents:
<files ~ "^. (HTACCESSHTPASSWD) $ ">
Deny from all
</Files>
Rewriteengine on
Rewritecond%{http_host} ^ (xxx.com) (: 80)? [NC]
Rewriterule ^ (. *) http://www.xxx.com/$1 [r=301,l]
Order Deny,allow

Setup is completed and uploaded to your site root directory, as long as you access xxx.com will automatically jump to the www.xxx.com domain name, so that the entire site to achieve the weight of the www.xxx.com domain name.

Advantages: For all search engines are working.

Disadvantage: To understand a little bit of code and server things.

Note: Once you have set the site's preferred domain, then the site to do outside the chain and the chain when all use the set domain name.

Do SEO is what, I think do SEO is to do the details, do others do not do or ignore things, do the details like the above said details, then believe that your site will be more than your competitors performance more prominent.

The details of the decision to succeed in doing a website plays a very important role.

This article by the Future Wolf-cps Alliance forum stationmaster starts: http://www.weilailang.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.