coar 01/05/06 15:03:27 Modified: htdocs/manual/mod mod_rewrite.html Log: Document new ability to escape characters in Rewrite* input strings using '\' (e.g., "\$" to keep it from having its special meaning), and NoEscape/NE flag to disable filtering the rewritten output through URI encoding. Revision Changes Path 1.57 +30 -0 httpd-docs-1.3/htdocs/manual/mod/mod_rewrite.html Index: mod_rewrite.html =================================================================== RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/mod/mod_rewrite.html,v retrieving revision 1.56 retrieving revision 1.57 diff -u -u -r1.56 -r1.57 --- mod_rewrite.html 2001/02/27 21:35:13 1.56 +++ mod_rewrite.html 2001/05/06 22:03:27 1.57 @@ -275,6 +275,17 @@ until no more conditions are available. If all conditions match, processing is continued with the substitution of the URL with Substitution. +
+As of Apache 1.3.20, special characters in TestString and
+Substitution strings can be escaped (that is, treated as
+normal characters without their usual special meaning) by prefixing them
+with a slosh ('\') character. In other words, you can include an
+actual dollar-sign character in a Substitution string
+by using '\$'; this keeps mod_rewrite from trying
+to treat it as a backreference.
+
+
noescape|NE' (no URI escaping of output)+ RewriteRule /foo/(.*) /bar?arg=P1\%3d$1 [R,NE] ++ which would turn '
/foo/zed' into a safe request
+ for '/bar?arg=P1=zed'.
+
+ Notice: The noescape flag is only available
+ with Apache 1.3.20 and later versions.
+ |
passthrough|PT' (pass through to next handler)uri field