httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Wilson <>
Subject [users@httpd] Regexps in rewrite rules
Date Tue, 22 Mar 2005 10:53:29 GMT

I understand that Apache 2.0 uses Perl style regexps.  With this in
mind, I wrote the following rewrite rule to force a mime type of a 
CGI application for antyhing under /cgi-bin EXCEPT files inding in 
.html - however the rule always returns "Not matched" in the rewrite 
logs, and no matter how I attempt this rule, it never seems to match. 

Other rules I have written with more vanilla regular expressions all
work fine, but I can't seem to do the following negation successfully.

RewriteRule  /cgi-bin/.*(?!\.html
$) /local/apache/cgi-bin/cgiwrap/%{ENV:UID}/$1

Can anyone advise what is wrong with this rule please?



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