I have the following proxy rule on www.example.com/.htaccess
RewriteEngine On
RewriteRule ^(.*)$ http://www2.example.com/$1 [P]
Requests for
http://www.example.com/images/properties/resized%20pics/1_thumb.jpg
Are showing up in the server logs on www2 as
/images/properties/resized
I've tried various flags [NE,P], [B,P] but can't get this to work. Also tried quoting the second argument of RewriteRule. I've seen this question but it deals with 500 I'm getting 404.
Apache 500 when proxying URLS with %20 via mod_proxy
tcpdump -A -s 0 port 80 and host www2.example.com | grep resized
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
E...%.@.t...I...l.s....Pu....<6.P.@).f..GET /images/properties/resized/ HTTP/1.1