URL是否应区分大小写? [英] Should URL be case sensitive?
本文介绍了URL是否应区分大小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到
HTTP://STACKOVERFLOW.COM/QUESTIONS/ASK
和
http://stackoverflow.com/questions/ask
都可以正常工作-实际上,前一个会转换为小写字母。
both works fine - actually the previous one is converted to lowercase.
我认为这对用户有意义。
I think that this makes sense for the user.
如果我查看Google,则此网址可以正常工作:
If I look at Google then this URL works fine:
http://www.google.com/intl/en/about/corporate/index.html
,但是带有 ABOUT的那个无效:
but this one with "ABOUT" is not working:
http://www.google.com/intl/en/ABOUT/corporate/index.html
URL是否区分大小写?
Should the URL be case sensitive?
推荐答案
根据W3的 HTML和URL ,它们应该:
According to W3's "HTML and URLs" they should:
在某些情况下,可能存在URL或部分URL没关系,但是
识别这些内容可能并不容易。用户应始终认为
URL区分大小写。
There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.
这篇关于URL是否应区分大小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文