URL 中的大写字母是否应该这样宣传?
目前,我们的 URL 看起来像这样:
http://helpdesk.ourdomain.com
最近,有人讨论将这些 URL 做广告(在出版物、网站等上),以提高可读性:
http://HelpDesk.OurDomain.com
我们的 Web 服务器使用大写元素处理对 URL 的访问正确地输入,这意味着当您访问该 URL 时,它会将 URL 重写为全部小写。然而,我总是被告知 URL 应该区分大小写。记住这一点,我认为不应该用大写字母来宣传 URL。
广告网址中包含大写字母是一种好的做法吗?为什么或为什么不呢?
Currently, our URL's look something like this:
http://helpdesk.ourdomain.com
Recently, there has been talk of advertising these URLs (in publications, on websites, etc.) to look like this for readability purposes:
http://HelpDesk.OurDomain.com
Our web server handles going to the URL with upper-case elements in it correctly, meaning when you go to that URL, it rewrites the URL to be all lower-case. However, I was always taught that URL's are meant to be case-sensitive. Keeping that in mind, I would think that advertising the URL's with upper-case letters would not be something that should be done.
Is advertising URL's with upper-case letters in it an okay practice? Why or why not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
引用 W3C:
我会说不,保持小写。
Quoting the W3C:
I would say not, keep it lowercase.
来自 规范:
比较两个 URI 以确定它们是否匹配时,客户端应该对整个 URI 使用区分大小写的逐个八位字节比较,但以下例外:
From the spec:
When comparing two URIs to decide if they match or not, a client SHOULD use a case-sensitive octet-by-octet comparison of the entire URIs, with these exceptions: