Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 99748 invoked from network); 20 Oct 2005 16:42:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2005 16:42:00 -0000 Received: (qmail 87092 invoked by uid 500); 20 Oct 2005 16:41:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87073 invoked by uid 500); 20 Oct 2005 16:41:48 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 87062 invoked by uid 99); 20 Oct 2005 16:41:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 09:41:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [137.229.34.30] (HELO smtp.uaf.edu) (137.229.34.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 09:41:47 -0700 Received: from otter.cde.uaf.edu (65-231.trans.uaf.edu [137.229.66.231] (may be forged)) by smtp.uaf.edu (8.12.11/8.12.11/uaf3) with ESMTP id j9KGep43470129 for ; Thu, 20 Oct 2005 08:40:53 -0800 (AKDT) From: Joshua Kugler Organization: UAF Center for Distance Education - IT To: users@httpd.apache.org Date: Thu, 20 Oct 2005 08:41:16 -0800 User-Agent: KMail/1.7.2 References: <1129825988.4357c6c426677@mail.netnevada.net> In-Reply-To: <1129825988.4357c6c426677@mail.netnevada.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510200841.16300.joshua.kugler@uaf.edu> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] make URL's case insensitive X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thursday 20 October 2005 08:33, dogbert@netnevada.net wrote: > Hi All, > > I run apache 2.0.5x, and was wondering if there is a way to make URL's > (after the domain portion) case insensitive in apache (all URL's), for > example: > > www.foobar.com/JUNKFOOD.htm (client browser) > > would be processed by httpd as: > > www.foobar.com/junkfood.htm (server side) > > In reading the apache FAQ in 1.3, it says the following: > > You can't! The reasons are: first, that, case translations for arbitrary > length URLs cannot be done via regex patterns and corresponding > substitutions. One needs a per-character pattern like the sed/Perl > tr|..|..| feature. Second, just making URLs always upper or lower case does > not solve the whole problem of case-INSENSITIVE URLs, because URLs actually > have to be rewritten to the correct case-variant for the file residing on > the filesystem in order to allow Apache to access the file. And the Unix > filesystem is always case-SENSITIVE. > > But there is a module named mod_speling.c in the Apache distribution. Try > this module to help correct people who use mis-cased URLs. > > Barring this, can mod_speling be set to not provide a list of files that > are a 'close match' providing that the exact match is not found? What about creating a 404 cgi error document that will present the user with a message saying "Did you mean www.foobar.com/junkfood.htm" That way, they will find the file, and be reminded about the spelling for the next time. j----- k----- -- Joshua Kugler CDE System Administrator http://distance.uaf.edu/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org