Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

url capitilization

In what cases does capitilization affect a url? In some cases they seem to be case-sensitive. At other times they don't seem to be case sensitive.

like image 689
Daniel Avatar asked Feb 13 '26 16:02

Daniel


1 Answers

http://domain.name/path?query=string

Domain names are case insensitive. The path and query string afterwords are case sensitive. So www.yahoo.com and WWW.YAHOO.COM are identical, but wikipedia.org/bash is different from wikipedia.org/Bash.

It is up to the web server to interpret the path portion, so generally speaking Windows web servers might not care what case you use for file names and may allow both index.asp and Index.asp. UNIX web servers generally do distinguish based on case since the underlying file system does. Or if a web site is running custom software to interpret its URLs, like Wikipedia does with its MediaWiki software, then it can do whatever it likes.

like image 152
John Kugelman Avatar answered Feb 15 '26 15:02

John Kugelman