Learn from my idiocy

schnibitz

Registered Member
Joined
Mar 25, 2007
Messages
96
Reaction score
5
Hi everyone, I just had a hair-pulling experience that I wanted to share for the benefit of anyone who does the same thing I do. Suppose you have a site with hostgator. Create an html file with capitals in one of your sites:

Test.html

then create another like this:

test.html

Make sure each page has slightly different content (an obvious example would be like the <title> tag.

Make sure both files are on your site in hostgator, then point your web browser at http://www.yoursite.com/test.html.

Guess which one it ACTUALLY loads.

That's right

"Test.html"

Uhg, this totally farged me up for a while, and I just now fixed the problem. I believe this is a Unix convention that I SHOULD have known already. Learn from my idiocy.

-S
 
Could be related to the unix filesystem being case-sensitive. So like you said, test.html and Test.html would be two different files on unix/linux. (Windows cant handle it)

But i still dont know why the Uppercase version is preferred by the webserver/browser. Normally you should be able to open each individually in your browser by url(if they exist/linux webserver): Test.html / test.html
 
Back
Top