Settings

Theme

Ask HN: Should URL's be case insensitive?

3 points by ng-user 7 years ago · 2 comments · 1 min read

Reader

I frequently visit https://news.ycombinator.com/active and sometimes I accidentally type https://news.ycombinator.com/ACTIVE which provides me with a nice

Unknown.

message...

Should a URL string be case insensitive or does it actually matter?

LinuxBender 7 years ago

StackOverflow is typically a good place for this question. [1]

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.

https://tinyvpn.org/cs/

https://tinyvpn.org/Cs/

[1] - https://stackoverflow.com/questions/15641694/are-uris-case-i...

tlb 7 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't think of one that does.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection