httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <>
Subject Re: [users@httpd] mod_rewrite's behaviour changes while upgrading Apache1 -> 2
Date Fri, 03 Sep 2004 14:19:55 GMT
On Fri, Sep 03, 2004 at 09:32:30AM +0200, wrote:
>         RewriteCond  %{HTTP_HOST}  ^www\.ceadvisor\.cz
>         RewriteRule  ^/page_(.*)_(.*)\.html$$1&service=$2
> Behaviour of Apache2:
> Unfortunately apache2 is doing it wrong. It calls good page, BUT send 302 REDIRECT code
and redirect user to that php page. So, the problem is that user see index.php?page=zviditelneni&service=1
in his URL row instead of

If you get an implicit redirect from this rule that means the URI
reduction didn't happen, because the server thought that
"" didn't match the request, which may depend on the
UseCanonicalName setting and what URL you entered into the browser. 

If you omit the part from the right-hand-side of
the rule it should work correctly since you'll never get an implicit


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