From: Ken Coar Date: Fri, 18 May 2001 20:26:56 +0000 (+0000) Subject: Bring forward this patch from 1.3.. X-Git-Tag: 2.0.19~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6947ca5b3dafcfed8b9834770ddcc74abf20cd54;p=apache Bring forward this patch from 1.3.. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89160 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html b/docs/manual/mod/mod_rewrite.html index 812e755ccc..25f916f829 100644 --- a/docs/manual/mod/mod_rewrite.html +++ b/docs/manual/mod/mod_rewrite.html @@ -275,6 +275,17 @@ rule fails. If the pattern matches, then the next condition is processed until no more conditions are available. If all conditions match, processing is continued with the substitution of the URL with Substitution. +

Quoting Special Characters

+

+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. +

+

Regex Back-Reference Availability

One important thing here has to be remembered: Whenever you @@ -1661,6 +1672,25 @@ comma-separated list of the following flags: replacing it. Use this when you want to add more data to the query string via a rewrite rule.

+

  • 'noescape|NE' (no URI escaping of output)
    + This flag keeps mod_rewrite from applying the usual URI escaping + rules to the result of a rewrite. Ordinarily, special characters + (such as '%', '$', ';', and so on) will be escaped into their + hexcode equivalents ('%25', '%24', and '%3B', respectively); this + flag prevents this from being done. This allows percent symbols + to appear in the output, as in +
    +    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)
    This flag forces the rewriting engine to set the uri field of the internal request_rec structure to the value