httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Negate expression
Date Thu, 08 May 2003 17:34:59 GMT

On Thu, 8 May 2003, António Rafael Paiva wrote:
> <LocationMatch "/(!file).php">
>    SetOutputFilter LAYOUT .html .php
> </LocationMatch>

I'm not really a regex expert, but I would try something like this:

<LocationMatch "(?<!file)\.[^.]+$">

See http://www.perldoc.com/perl5.8.0/pod/perlre.html and
http://www.pcre.org/ for information on apache's regex engine (PCRE).

Normally I would suggest just using mod_rewrite for a task like this.
But I don't believe mod_rewrite has the capability to set filters at the
moment.  Probably should be added.

Joshua.

---------------------------------------------------------------------
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


Mime
View raw message