Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Should URL's be case insensitive?
3 points by ng-user on June 3, 2019 | hide | past | favorite | 2 comments
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?



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...


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: