URL 应该区分大小写吗? [英] Should URL be case sensitive?

查看:52
本文介绍了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,则此 URL 工作正常:

If I look at Google then this URL works fine:

http://www.google.com/intl/en/about/corporate/index.html  

但是这个带有关于"的不起作用:

but this one with "ABOUT" is not working:

http://www.google.com/intl/en/ABOUT/corporate/index.html   

网址是否应该区分大小写?

Should the URL be case sensitive?

推荐答案

根据 W3 的HTML 和 URLs" 他们应该:

According to W3's "HTML and URLs" they should:

可能有 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆