Forum Moderators: phranque

Message Too Old, No Replies

Case-sensitivity

Can Apache 1.3 be case sensitive on XP?

         

webmatt

7:54 pm on Nov 19, 2004 (gmt 0)

10+ Year Member



Hi folks,

I'm porting my site to a Linux/Apache server from IIS. Many of my file names are in CamelCase format, but I wish to convert them to all lower case (like I should have done to start with).

My issue is, on my local XP dev environment, Apache does not seem to care about the case. Can Apache be forced be case sensitive on XP like it is on Linux?

Thanks,
Matt

jdMorgan

9:42 pm on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Matt,

Welcome to WebmasterWorld!

The "Apache" case sensitivity is in the file-handling of *nix.
As a result, case-sensitivity depends primarily on the operating system.

Apache itself doesn't care, although the regular-expressions patterns in rewrites and redirects might need to be adjusted. But I assume you'd like to make incorrect-case filepaths paths 'break' so you can fix them, and that is operating-system-dependent. I don't know of any way to make Windows OSes case-sensitive.

Jim

webmatt

10:40 pm on Nov 19, 2004 (gmt 0)

10+ Year Member



Jim,

Thanks for the reply, though it's not the answer I was wanting to hear. :) I was afraid it was an OS dependency.

Maybe I'll just leave my files and links in upper & lower case to save time. I've heard it's better to have all lower case, but the reason has never been clear to me.

Thanks so much for the welcome, and for breaking the bad news to me.

Matt

jdMorgan

11:03 pm on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I've heard it's better to have all lower case, but the reason has never been clear to me.

Maybe because it makes it easier to move from a Windows server to an Apache server and back. However, as long as the names of resources (files, pages) and references to those resources (links) are mutually consistent, it doesn't really matter. I think the all-lowercase preference is simply because it's easier to type without having to use the Shift key.

Jim