TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Should URL's be case insensitive?

3 pointsby ng-useralmost 6 years ago
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 comments

LinuxBenderalmost 6 years ago
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>
tlbalmost 6 years ago
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.