Website 301 redirection technology is mainly the best way to be search engine friendly after the webpage changes its address. As long as it is not a temporary move, it is recommended to use 301 for redirection. There are many articles on the Internet introducing 301 redirection technology. You can search for this on Baidu and Google. Today I will mainly introduce to you the application of 301 redirection technology in SEO.
As we all know, the main domain name of a website defaults to a domain name without www, and the domain name with www exists as a special second-level domain name. Generally, the domain name with www is in compliance with the URL specifications. When we build a website, we always use the domain name with www as the main domain name. When building external links, we also use this domain name as the main domain name.
In Google's webmaster tools, webmasters can choose the main domain name of the website. Generally, we specify the domain name with www as the main domain name, so that all Google crawls are based on this domain name, and the included URLs This domain name is used as the URL domain name to be indexed into the database.
Baidu does not provide such webmaster tools for the time being, so Baidu will include the homepage URLs of these two domain names at the same time. Some of the indexed URLs include www, and some do not include www. Therefore, when we query the inclusion status on Baidu, site :domain.com and site:www.domain.com return different results. Generally, the former returns a larger number of inclusions. And it will also cause the two domain names to have different weights in Baidu and different snapshots.
One of the author's websites encountered such a situation. Domain.com took snapshots every day and had a high weight; www. domain.com took a snapshot a week late and had a low weight. In the past, when building external links, domain names with www have been the main ones, and domain names without www have basically never been used. Such problems may be caused by changing the server IP. In order to solve this problem, 301 redirection technology is used to redirect the domain name without www to the domain name with www.
After the adjustment, it took about 2 months. The snapshot with the www domain name was normal, and when site:domain.com, the returned results were all URLs with the www domain name, and the original indexed URLs without the www domain name were It has been deleted from Baidu database. If you also have this problem, you can use 301 redirection technology to solve it. The cycle for Baidu to respond to 301 redirects is relatively long, usually about 3 months. During this period, the website must be continuously updated and external links built.
Using 301 redirect technology can unify the weight of the website and avoid the dispersion of the weight of the website; standardize the URL. Therefore, in the early stages of building a website, it is best to directly use 301 redirection technology to redirect domain names without www to domain names with www, so that Baidu will only index URLs with www domain names. Some webmasters may not parse domain names without www. In fact, this is not a good idea and can easily cause traffic loss, because some visitors like to directly enter domain names without www. If it is not parsed, this part of the traffic will be lost. The above is just my personal experience and is for reference only.
Original address: http://www.minimb.cn/?p=844 (please indicate when reprinting)
Thanks to suesue_shop for your contribution