[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] uppercase / lowercase subdirectories
- Subject: Re: [cobalt-users] uppercase / lowercase subdirectories
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Wed Jun 20 06:43:05 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Dan Kriwitsky" <webhosting@xxxxxxxxx> wrote:
> 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.
Since some later messages on the thread questioned whether there is in fact
a solution, I want to say that this solution does in fact work. And like
Dan said, it does even recognize single character misspellings. Dom posted
the URL of the Apache manual section on mod_speling earlier. If you happen
to be on a system that doesn't have mod_speling installed, but does have PHP
you have another option. Using mod_rewrite you can use Apache's AliasMatch
to direct all site files to a single PHP script which converts the selected
URL to lowercase using strotolower() and then loads the proper file. It
might be considered a hack, but it works.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/