On 10/5/06, David Salisbury <[EMAIL PROTECTED]> wrote:

Just wondering if this is possible.

Due to a technicality, I would like urls on our site asking for

/dir/prog?gl/clouds.men*
to be reverse proxied from
http://another.domain.com/dir/prog?gl/clouds.men*

So I'm trying.

RewriteEngine on
RewriteRule ^(/dir/prog?gl/clouds.men*) http://another.domain.com/$1 [p]

Doesn't seem to work though by itself.

In the docs for RewriteRule, see the big box labeled "Query String".
You need something like:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^gl/clouds.men
RewriteRule ^/dir/prog http://another.domain.com/dir/prog [P]

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to