Case sensitive URLs ...
-
So, apparently, URLs in Discourse are case sensitive.
I was using "last" to go to the end of a topic while triggering a refresh. My Caps Lock must have been enabled, since I actually entered "LAST". End result:
Anyway, I go back and enter "last" instead:
No problems. Huh. Try some mixed case, back to the original issue.
-
-
Note to @codinghorror and @sam: URLs are (by definition) case insensitive. This behavior should not exist!!!
... not on linux webservers.
apache treats URLs as case sensitive and has since day1 (unless you activate mod_speling which has never been activated by default)
nginx AFAICT behaves the same way.
IIS is the odd man out, but that's probably because windows for hysterical reasons treats paths as case preserving insensitive
-
... not on linux webservers.
QFT. Unless the server operator flips a switch somewhere in Apache, they are case-sensitive.
For once this is probably not a Discourse bug.
-
... not on linux webservers.
apache treats URLs as case sensitive and has since day1 (unless you activate mod_speling which has never been activated by default)
nginx AFAICT behaves the same way.
IIS is the odd man out, but that's probably because windows for hysterical reasons treats paths as case preserving insensitive
Unless the server operator flips a switch somewhere in Apache, they are case-sensitive.
For once this is probably not a Discourse bug.
I have never once come across a web site that treats URLs in a case sensitive manner. In any case, I've modified my note above.
-
I have never once come across a web site that treats URLs in a case sensitive manner
See:
https://www.google.co.uk/IMAGES
vs
EDIT: although, to be fair, I thought URLs were case insensitive until now.
-
I have never once come across a web site that treats URLs in a case sensitive manner.
depends on the framework. as previously mentioned in IIS/ASP world they are always case insensitive.
in Joomla and wordpress (before version 3.5) they are case sensitive, unless you do work to change that. and i think Drupal can be case sensitive, but the default configuration is to be case insensitive.
-
IIS
I think Apache on Windows is case insensitive too, but I can't remember for sure nor can I be bothered to fire it up to check.
-
I think Apache on Windows is case-insensitive too, but I can't remember for sure nor can I be bothered to fire it up to check.
I think you're correct, it's an OS thing and not a web server thing. Apache on Windows isn't very common so Linux is a safe assumption when Apache is mentioned.
-
See:
https://www.google.co.uk/IMAGES
vs
EDIT: although, to be fair, I thought URLs were case insensitive until now.
Great, now I'm going to spend at least an hour checking a bunch of different URLs ...
-
You're easily entertained.
-
You're easily entertained.
Who said it was for entertainment? But it is better than doing real work.
-
I think Apache on Windows is case insensitive too, but I can't remember for sure nor can I be bothered to fire it up to check.
it should be. Apache lets the file system handle case sensitivity (unless you use mod_speling as mentioned before)
-
-
I think you're correct, it's an OS thing and not a web server thing. Apache on Windows isn't very common so Linux is a safe assumption when Apache is mentioned.
But does that assume that you're serving up some file sitting on the disk somewhere? As opposed to the js / RoR ball of mud that is Discourse? Seems like it would depend on how the back end / framework interprets that stuff. I wouldn't think apache or nginx knows what the RoR stuff is doing behind the scenes on REST calls, would it?
-
I suppose it depends on whether it's serving static files or generated content from another framework.
-
I wouldn't think apache or nginx knows what the RoR stuff is doing behind the scenes
I don't think the RoR stuff knows what the RoR stuff is doing here either.
-
-
Which you definitely don't
nope!
but in this case the name of the module really is mod_speling ;-)
-
mod_speling
Sounds like something one could encounter in an old VB6 application ...
Filed under: Hungary is this way: :wind_east:
-
yeah. it does. i think the author of that module was making a joke and it stuck.
-
> URLs are (by definition) case insensitive. This behavior should not exist!!!
... not on linux webservers.
In actual fact
-
the protocol/scheme name is case sensitive (with provisos,)
-
the domain-name portion is case insensitive, and
-
the remainder of the URL should be case sensitive.
-
-
enjoy your necklace!