TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Should URL's be case insensitive?

3 点作者 ng-user将近 6 年前
I frequently visit https:&#x2F;&#x2F;news.ycombinator.com&#x2F;active and sometimes I accidentally type https:&#x2F;&#x2F;news.ycombinator.com&#x2F;ACTIVE which provides me with a nice<p><i>Unknown.</i><p>message...<p>Should a URL string be case insensitive or does it actually matter?

2 条评论

LinuxBender将近 6 年前
StackOverflow is typically a good place for this question. [1]<p>Most web servers on unix or linux the URL is case sensitive. IIS on windows the URL is not case sensitive. The domain name is not case sensitive.<p><a href="https:&#x2F;&#x2F;tinyvpn.org&#x2F;cs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tinyvpn.org&#x2F;cs&#x2F;</a><p><a href="https:&#x2F;&#x2F;tinyvpn.org&#x2F;Cs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tinyvpn.org&#x2F;Cs&#x2F;</a><p>[1] - <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;15641694&#x2F;are-uris-case-insensitive" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;15641694&#x2F;are-uris-case-i...</a>
tlb将近 6 年前
While the host part is case-insensitive, the path is case-sensitive on almost every website. In principle a website could choose to do a case-insensitive match, but I can&#x27;t think of one that does.