From: Eric Covener Date: Thu, 19 May 2022 18:44:15 +0000 (+0000) Subject: Merge r1901071 from trunk: X-Git-Tag: 2.4.54-rc1-candidate~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29ea6ee7a4e832cf6565603a34ebf7b2691b9a02;p=thirdparty%2Fapache%2Fhttpd.git Merge r1901071 from trunk: escaping doesn't actually happen by default otherwise, we would not have [B] and two internal escape functions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1901072 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index c7bcd310ed6..2bcb02f4b12 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1397,8 +1397,9 @@ cannot use $N in the substitution string! noescape|NE Prevent mod_rewrite from applying hexcode escaping of - special characters in the result of the rewrite. details ... + special characters in the result of rewrites that result in + redirection. + details ... nosubreq|NS diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index a8314bc73ee..41dfcac57c1 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -476,7 +476,8 @@ RewriteRule "(.*\.(jpg|gif|png))$" "http://images.example.com$1" [P,NC]
NE|noescape

By default, special characters, such as & and ?, for example, will be converted to their hexcode -equivalent. Using the [NE] flag prevents that from happening. +equivalent for rules that result in external redirects. +Using the [NE] flag prevents that from happening.