[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] uppercase / lowercase subdirectories



> I seem to be experiencing a funny problem... I have a lot of
> sites that are
> under my domain name in subdirectories (example:
> www.domain.com/clientname)
> - these worked fine on my old NT server when people typed them in
> either all
> in caps or all lowercase - now on the RAQ 4 I get a error "file not found"
> message when trying to access in all CAPS (on the server the
> directory name
> is in lower-case).
>
> Is there a way to make this file accessible to people whether
> they choose to
> type in all CAPS or lowercase? I've searched through the archives with no
> results...
>

I'm not sure whether the http://httpd.apache.org/docs/mod/mod_speling.html
module that would handle this is installed by default, but you can try
putting in a .htaccess file in the top level /web directory for the site in
question. The contents of the file, if you don't have one there already,
should be just.

Options -Indexes
CheckSpelling on

I put the -Indexes in as it's just handy to have if you don't want people
browsing through directories that don't have an index.html file in them.
If the CheckSpelling module is there it should fix the uppercase/lowercase
issue. It will also pick up single letter mistakes, e.g. if someone types in
www.domain.com/fild/ instead of /file/ it will give them a choice, if
there's more than one with just one letter difference, or direct them to the
right directory.

I recommend you get a basic Linux book like Webmaster in a Nutshell or if
you get ambitious, the Apache book from O'Reilly (Amazon.com).
--
Dan Kriwitsky