Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 28888 invoked by uid 6000); 8 Apr 1998 06:52:55 -0000 Received: (qmail 28870 invoked by uid 2012); 8 Apr 1998 06:52:53 -0000 Date: 8 Apr 1998 06:52:53 -0000 Message-ID: <19980408065253.28869.qmail@hyperreal.org> To: apache-bugdb@apache.org, rse@apache.org, wvincent@cisco.com From: rse@hyperreal.org Subject: Re: mod_rewrite/2046: Rewrite Rule has different behavior form 1.2.1 Sender: apache-bugdb-owner@apache.org Precedence: bulk [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] Synopsis: Rewrite Rule has different behavior form 1.2.1 State-Changed-From-To: open-feedback State-Changed-By: rse State-Changed-When: Tue Apr 7 23:52:53 PDT 1998 State-Changed-Why: Although the correct ruleset would be RewriteEngine on RewriteCond %{REQUEST_URI} !^/protected-cgi-bin/foo\.cgi$ RewriteCond %{REQUEST_URI} !^/protected-cgi-bin/foo2\.cgi$ RewriteRule ^/(.*) http://www.server.com/$1 [L,R] (remember that the patterns are regex) I cannot reproduce your wrong behaviour. At least under 1.3b6-dev mod_rewrite evaluates the ruleset correctly. I got redirects for any URL except for the two listed CGI URLs. So, I expect that there are some other rulesets in your configuration which cause the wrong behaviour. Please double-check your configuration or at least enable RewriteLogLevel 9 and look what the RewriteConds actually evaluate.