From: Rich Bowen
Date: Wed, 28 Sep 2016 13:13:01 +0000 (+0000)
Subject: Show the example of how to do what you said to do
X-Git-Tag: 2.4.24~225
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45c0d60dffcd02d690aaa5e54e8c1d6ccfc4db78;p=thirdparty%2Fapache%2Fhttpd.git
Show the example of how to do what you said to do
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1762653 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml
index e38b5d8ac50..a7b6748e83d 100644
--- a/docs/manual/rewrite/flags.xml
+++ b/docs/manual/rewrite/flags.xml
@@ -91,6 +91,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