DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34602>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34602





------- Additional Comments From [EMAIL PROTECTED]  2006-10-11 03:39 -------
(In reply to comment #15)

> RewriteRule ^/a/(.+)$       http://www.example.com/b/$1 [R,L]
> 
> This causes the URL:
> 
> http://localhost/a/where%3f/get?id=1
> 
> To be mapped to:
> 
> http://www.example.com/b/where?/get
> 
> instead of:
> 
> http://www.example.com/b/where%3f/get?id=1

RewriteMap esc int:escape

RewriteRule ^/a/(.+)$       http://www.example.com/b/${esc:$1} [R,L,NE]

Given URL?QS, core unescapes URL but not QS, and rewrite escapes both the
URL and QS that it gets. So [NE] prevents rewrite doing the escaping, and
the RewriteMap causes it to escape the URL it gets, but not the QS it gets.

I'm not sure it's *right*, but it seems to work for me, up to and including
2.0.59.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to