6 simple steps to quickly fix Z-blog site 301 redirect

Source: Internet
Author: User
Keywords 301 redirect

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

My z-blog new station in the completion of the classification home static optimization, after a few days to see a snapshot of Baidu daily update, included also normal, can be the key word ranking is still not up, I think this situation should have a great relationship with the weight. Yesterday to check Baidu Snapshot, only to find that there is a www and no www two home snapshots, while the internal page snapshots are all with www. This just remember that the site did not do 301 redirect, resulting in the weight of not high scattered in two URLs above.

First, why the site to do 301 redirect

Simple said 301 redirect function is to complete the site domain name jump, you can increase the weight of the target site, theoretically, it is a very safe, will not affect the weight of the site, will not be the search engine as the best way to cheat. Of course, the method can not be abused. Then under what circumstances, webmaster need to use the site to optimize the 301 redirect method?

1. Site has multiple snapshots

For example, my site now found that Baidu has two sites snapshots, www.***.com and ***.com have snapshots. And I'm not going to take ***.org as the main domain but I can't stop parsing him. So, do not take the WWW domain name to do a jump.

2. Site has multiple domain names

If there are multiple domain names on the site, such as xxxx.com xxxx.net xxxx.org These domain names open the site, then it is necessary to set a main domain name, the other unimportant point to the main domain name, because the other domain name will be the weight of the main domain name away.

3. To change the domain name

Sometimes we will encounter the site domain name expires, or other reasons for the change of domain name, you can use it to the old domain name point to the new domain name.

4. Problems with Web sites

When a page content is deleted or there is an error accessing it. But note that 301 is permanent redirect, if it is a temporary jump, you must not forget to recover. It is also not recommended that temporary jumps use 301 redirects.

Two. Code implementation zblog Web site 301 redirect the specific procedures:

1. Copy the following code and change the code "***.com" to your own URL.

If request. ServerVariables ("server_name") = "***.com" then response.status= "the moved" permanently "Response.AddHeader", "Http://www.***.com" Response.End End If

2. Enter the background of the website, open file management.

3. Locate the Default.asp file in the root directory of the website and click into Edit Status.

4. Paste the above copied code in the relevant position in the Default.asp diagram.

5. Final submission of modified documents.

  

6.301 redirect Detection.

After completing the above operation, we also need to detect whether the site 301 redirection is successful. The method is direct access to your site without WWW domain name, see whether the successful jump to the domain name with www. Of course, if it is not insured, it is necessary to use the 301 Redirect Detection tool to query the status of the site. If the query result returns a value of http/1.1 moved permanently then the redirection succeeds, as shown in the following illustration:

  

Here it is worth emphasizing again is 301 redirect is the search engine relatively friendly jump way, and http/1.1 302 Found for temporary redirect, it is easy to be judged by search engine for cheating.

Third, Baidu's website optimization 301 redirect Sensitivity

My site in the early morning with the code to do 301 redirects, at around 9 points to see Baidu snapshots, found no WWW site snapshots did not update, and with the WWW Web site snapshots updated. When viewed yesterday, the snapshots of two sites were synchronized. This change shows that Baidu search engine is now 301 redirect is more sensitive.

1. Web site snapshots with www updated, as shown in figure:

  

2. The snapshot of the Web site without www is unchanged, as shown in figure:

  

This also shows that 301 redirect, the weight of the transfer is not immediately started, listen to a lot of webmaster analysis of the weight of the transfer process may take a long time, interested can go to track their own, here will not repeat.

Article by the good stature weight loss net http://www.haoshencai520.com Small series original, reprint please specify!

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.