httpd-dev mailing list archives

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


Brian Candler wrote:

[..cut..]

> 
> 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 http://foo.com%{REQUEST_URI} [P]

Have you tried

RewriteRule ^/common-cgi/php_wrapper http://foo.com%{REQUEST_URI}?%{QUERY_STRING} [P]

instead?

Regards

RĂ¼diger

[..cut..]

Mime
View raw message