From: Rich Bowen
Date: Wed, 28 Sep 2016 13:12:26 +0000 (+0000)
Subject: Actually show the example of how to do this.
X-Git-Tag: 2.5.0-alpha~1125
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ccbde5991639caabf9a54992582622b9299e0fb;p=apache
Actually show the example of how to do this.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1762651 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml
index 3439c6da43..7f518aee3d 100644
--- a/docs/manual/rewrite/flags.xml
+++ b/docs/manual/rewrite/flags.xml
@@ -94,6 +94,10 @@ isn't a valid URL, and so would be encoded as
before being passed on to the output URL, resulting in a correct mapping to
/search.php?term=x%20%26%20y%2Fz
.
+
+RewriteRule "^search/(.*)$" "/search.php?term=$1" [B,PT]
+
+
Note that you may also need to set AllowEncodedSlashes to On
to get this
particular example to work, as httpd does not allow encoded slashes in URLs, and