httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
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 and 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.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message