* You would need to capture more carefully in the condition (because
it is the full request line w/ e.g. GET /.... HTTP/1.1)
* You need to use %1 in the substitution

On Sun, Aug 17, 2014 at 9:44 AM, Vadim Blumkin <vadim.blum...@gmail.com> wrote:
> Thanks, Eric
>
> Do you mean something like this ?
>
> RewriteCond  %{THE_REQUEST}  ^/filter/(.*)
> RewriteRule  ^/filter/(.*)$ http://127.0.0.1:7001/$1 [R]
>
> Thanks,
> Vadim
>
> On Sun, Aug 17, 2014 at 3:19 PM, Eric Covener <cove...@gmail.com> wrote:
>>
>> On Sun, Aug 17, 2014 at 7:59 AM, Vadim Blumkin <vadim.blum...@gmail.com>
>> wrote:
>> > But instead of sending it as is , apache is doing decoding and sending
>> > it
>> > like this:
>>
>> there are two places it can happen, mod_rewrite and mod_proxy.
>>
>> In mod_rewrite, the thing you're comparing against has been decoded.
>> If you want it in the users original form, use a condition and capture
>> against %{THE_REQUEST}
>>
>> in mod_proxy, see the "canon" flag which I don't think you can set via
>> mod_rewrite. But it also may be skipped when you come in via rewrite.
>>
>>
>> --
>> Eric Covener
>> cove...@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>



-- 
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to