The difference between a slash and a slash in the URL

Source: Internet
Author: User

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

There is a lot of discussion about the "/" and without "/" in the Web site. Because in the hair outside the chain often tangled in the end should not bring a slash "/"?

1, the domain name after the need to add a slash ("/")?

The end of the domain name plus no slash on the search engine basically has no effect, will eventually crawl the domain name default content on the home page, the content is no different, naturally no impact. But for the server, without the slash server will be more than one time to judge the process, with the slash will be directly returned to the site settings stored in the root of the site under the default page. The process of judging different servers, involving server technical details are not introduced here.

So take it or not? This is entirely up to your liking. If not the pursuit of perfection, then a little server performance, time loss is ignored. End without a slash, looking comfortable, do the chain is also simple and convenient.

2, similar to Xxx.com/seo and xxx.com/seo/these 2 URLs with Which?

"That's not nonsense?" One is the root directory of the page, one is a level two directory, which still need to choose, what to use what Ah!

In fact, this score, appear xxx.com/seo such URLs, generally use URL redirection:

A, assuming xxx.com/seo by URL rewrite to xxx.com/seo/, then Xxx.com/seo will be a URL rewrite process, performance and time on a small loss, the same reason, with which web site all by personal preference, However, we must pay attention to the unity of the Web site, select one of the following, in the chain and outside the chain are used to use this, because although the content is exactly the same, but search for the search engine for these 2 URLs corresponding to 2 pages, at the same time the use will result in weight dispersion. For example, the Seowhy forum is the unified use of/bbs/.

b, assuming that Xxx.com/seo is being skipped by a URL rewrite to a xxx.com/seo/on the same page, then which one to use.

Original: http://www.uy86.com/post/11.html Copyright, 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.