From: Vincent Bray $N
in the substitution string!
so backreferences will be unescaped at the time they are applied.
Using the B flag, non-alphanumeric characters in backreferences
will be escaped. For example, consider the rule:
RewriteRule RewriteRule ^(.*)$ index.php?show=$1
+ RewriteRule ^(.*)$ index.php?show=$1
This will map /C++
to index.php?show=/C++
.
But it will also map /C%2b%2b
to
index.php?show=/C++
, because the %2b
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index fbc102d2b9..5b7d743534 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -1266,7 +1266,7 @@ cannot use $N
in the substitution string!
so backreferences will be unescaped at the time they are applied.
Using the B flag, non-alphanumeric characters in backreferences
will be escaped. For example, consider the rule:
RewriteRule RewriteRule ^(.*)$ index.php?show=$1
+ RewriteRule ^(.*)$ index.php?show=$1
This will map /C++
to index.php?show=/C++
.
But it will also map /C%2b%2b
to
index.php?show=/C++
, because the %2b