https://bz.apache.org/bugzilla/show_bug.cgi?id=66563
--- Comment #3 from Steven Bush <[email protected]> --- Ok, that worked successfully. I was able to get it working with: RewriteMap esc int:escape RewriteRule "^/dev/test/(.*)$" "/search?q=$1&origin=${esc:%{REQUEST_URI}}" [B,PT,L,QSA] I would suggest perhaps adding some text to the mod_rewrite documentation for RewriteRule, but otherwise this issue can be closed. Something along these lines for the docs: EXISTING: In addition to plain text, the Substitution string can include back-references ($N) to the RewriteRule pattern back-references (%N) to the last matched RewriteCond pattern server-variables as in rule condition test-strings (%{VARNAME}) mapping-function calls (${mapname:key|default}) Back-references are identifiers of the form $N (N=0..9), which will be replaced by the contents of the Nth group of the matched Pattern. The server-variables are the same as for the TestString of a RewriteCond directive. The mapping-functions come from the RewriteMap directive and are explained there. These three types of variables are expanded in the order above. PROPOSED: Although the B and related flags escape back-references, server-variables are not similarly escaped. Instead, use the RewriteMap internal functions to escape the server-variables as needed. Meanwhile, Thank you for the quick response! -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
