httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <>
Subject Re: %{REQUEST_URI} inconsistency
Date Sun, 02 Oct 2005 10:49:07 GMT

Brian Candler wrote:


> Where it bit me is when a request has been associated with an action
> handler, and so the original URI is not the same as the rewritten one. You
> can have
>     AddType application/x-php php
>     Action application/x-php /common-cgi/php_wrapper
> and if you actually *execute* php_wrapper on this box, then the script gets
> the correct REQUEST_URI as expected. However if you try to do something
> clever in mod_rewrite, such as trigger the request to be proxied to another
> machine where it will be executed:
>     RewriteRule ^/common-cgi/php_wrapper{REQUEST_URI} [P]

Have you tried

RewriteRule ^/common-cgi/php_wrapper{REQUEST_URI}?%{QUERY_STRING} [P]





View raw message