You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Schultz, Gary - COMM" <GS...@commerce.state.wi.us> on 2007/03/13 16:36:39 UTC
[users@httpd] LocationMatch expression syntax
I want to set a location match so that an URL is not case sensitive. The
following work individually:
<Location /IE/>
<Location /ie/>
<Location /Ie/>
<Location /iE/>
The following LocationMatch does not work:
<LocationMatch "/(IE|ie|Ie|iE)/">
What is the proper syntax to use for LocationMatch?
Gary T. Schultz
IT Administrator
Wisconsin Dept. of Commerce
608-266-1283
gschultz@commerce.state.wi.us
Re: [users@httpd] LocationMatch expression syntax
Posted by Rob Wilkerson <r....@gmail.com>.
I don't know if this will fly in Apache, but you could try /(?i)IE/ to
specify a case-insensitive match.
On 3/13/07, Schultz, Gary - COMM <GS...@commerce.state.wi.us> wrote:
>
>
> I want to set a location match so that an URL is not case sensitive. The
> following work individually:
>
> <Location /IE/>
> <Location /ie/>
> <Location /Ie/>
> <Location /iE/>
>
> The following LocationMatch does not work:
>
> <LocationMatch "/(IE|ie|Ie|iE)/">
>
> What is the proper syntax to use for LocationMatch?
>
>
>
> Gary T. Schultz
> IT Administrator
> Wisconsin Dept. of Commerce
> 608-266-1283
> gschultz@commerce.state.wi.us
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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
Re: [users@httpd] LocationMatch expression syntax
Posted by Vincent Bray <no...@gmail.com>.
On 13/03/07, Schultz, Gary - COMM <GS...@commerce.state.wi.us> wrote:
>
>
> I want to set a location match so that an URL is not case sensitive. The
> following work individually:
>
> <Location /IE/>
> <Location /ie/>
> <Location /Ie/>
> <Location /iE/>
>
> The following LocationMatch does not work:
>
> <LocationMatch "/(IE|ie|Ie|iE)/">
Hi,
This is a thorny issue involving standards (urls aren't case
insensitive, partly at least), operating systems (it works on
win32/other_os_with_uncased_fs) and standards again. See:
http://www.regdeveloper.co.uk/2006/08/01/apache_undead/
And a recent thread on the same subject, sort of.
http://mail-archives.apache.org/mod_mbox/httpd-users/200703.mbox/%3c20070305164920.GZ7896@ayvali.org%3e
(sorry about the ugly url)
Thing is you haven't said what you're trying to do so it's hard to
point fingers. Forgive me for the moment, at least ;-)
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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