From the A5 analysis of the importance of 301 and some feasible approaches

Source: Internet
Author: User
Keywords Some believe

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

Admin5 believe that everyone is very familiar with, from the first time I A5 on the time I saw A5 did not do 301, that is, not with 301 to the www with www. For example, now A5 into the admin5.com out of this domain name, if we then click on the domain name below the article, then all this site articles are no www hyperlinks. How can a large station such as A5 be able to change the entire site with minimal changes?

One, do not do 301 seriousness;

If the site does not do 301, there are many problems, such as A5 such as four addresses to the same article, look at the following example:

http://www.admin5.com/plus/view.php?aid=371620

http://admin5.com/plus/view.php?aid=371620

Http://www.admin5.com/article/20110827/371620.shtml

Http://admin5.com/article/20110827/371620.shtml

The above four addresses all point to my previous submission, the consequences of the results I believe that we all know, I have seen the webmaster network rooibos have shielding plus folder practices, but Rooibos is an agreement is not a rule, the same example: Http://www.baidu.com/s?tn =baiduhome_pg&bs=www.admin5.com%2fplus%2fview.php%3faid%3d&f=8&rsv_bp=1&wd=%cd%f5%d3%c0%cd%a8% a3%ba%c9%ee%b6%c8%b7%d6%ce%f6%b4%b4%d2%da%cd%f8seo%b2%df%c2%d4%a3%a8%d2%bb%a3%a9+&n=2&inputt=703 This article is not my, I casually Baidu search out, the snapshot is August 19. From another aspect, it is proved that Rooibos is a protocol, so the importance of 301 is embodied.

Second, do a good job home 301;

<? Header ("http/1.1 moved Permanently");

Header ("location:http://www.admin5.com"); >

This code is PHP's 301 code that can be plugged into index.php's head, but there are problems with this, such as our server configured with the default file HTML, htm or shtml, Then open the first is the index.html,php file will be ignored and do not have the effect, if our server configuration by default to open PHP, in order to search engine friendliness, we want to open HTML every time, so must 301 jump to http://www.admin5.com/ Index.html, then there is the new problem, that is, each time you open a index.html file, not the root directory of the site. In fact, we can make the generated HTML file directly to change the suffix name, PHP can be changed, that PHP file is not called any database static page, from the search point of view, as long as the file without a number of files can be said to be static files. So, here as long as the server's default open PHP can be, if it is the server please look below (of course A5 is certainly the server), this paragraph is written to have similar situation with A5 virtual host users.

Third, the home is done, people directly inside the page how to do;

If the user directly clicked on the inside page without the WWW How to do, this will require a total station of 301, then do not take the WWW is shtml file, shtml is not supported by 301, JavaScript? This is the client language, how 301? So it has spawned new problems, The server must be configured at this time, Modify Httpd.ini, because the server type is not known, there is no way to write down, but can provide ideas, the above addresses are common, there is a 371602 is the same, this is the ID number of the article, the resulting folder is the date of the day, and then the dynamic and not with the WWW 301 to the WWW address, this rule should not be difficult Write。

Four, do a good job of 301 what to do to make it more perfect;

After 301, or only to make a home 301 friends, how to let users and search engines only open the WWW file every time? This is just a finishing job, and we just need to modify the template file to put/xxx and ... /plus/xxx, add the first/front plus http://www.admin5.com This absolute address, the same will be written into the include file. So even if you only do the first 301 of users, users and search engines can not be imported to the place without www.

301 actually quite simple, half a month ago I was sure Ali mother is not, now also done 301, compared to webmaster nets Chinaz do better, has been. Also not to say A5 bad, after all, a big website is not every day so little thing, I aim to let A5 do better and more professional. Wen Zhangmingrui Original, reproduced please retain http://www.xmztd.com, thank you, if there is not a comprehensive place please advise.

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.