This is a discussion on mod_proxy & mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; how can I proxy this through: RewriteEngine On ProxyRequests On RewriteCond %{QUERY_STRING} (.*)&query2=[^&]+&(.*) RewriteRule (.*) $1?%1query2=rewritten%...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
how can I proxy this through:
RewriteEngine On ProxyRequests On RewriteCond %{QUERY_STRING} (.*)&query2=[^&]+&(.*) RewriteRule (.*) $1?%1query2=rewritten%3 RewriteRule ^http://www.domain.com/(.*) http://www.domain.com/$1 [P,L] ProxyPass / http://www.domain.com/ input: http://www.domain.com/?query1=123456...query3=1234567 output: http://www.domain.com/?query1=123456...query3=1234567 |
|
|||
|
"zen" <nik@portfoliodesign.net> schreef in bericht
news:422d7ad8$0$8750$db0fefd9@news.zen.co.uk... > how can I proxy this through: > RewriteEngine On > ProxyRequests On > RewriteCond %{QUERY_STRING} (.*)&query2=[^&]+&(.*) > RewriteRule (.*) $1?%1query2=rewritten%3 > RewriteRule ^http://www.domain.com/(.*) http://www.domain.com/$1 [P,L] For one thing the 'http://www.domain.com' is not part of the request, you'll need to use a condition on [at least] %{HTTP_HOST}. Another thing ... you're really planning to proxy back into the same domain ??? HansH -- There is no Rich Text Formatted Manual on this subject. |