]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Show the example of how to do what you said to do
authorRich Bowen <rbowen@apache.org>
Wed, 28 Sep 2016 13:13:01 +0000 (13:13 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 28 Sep 2016 13:13:01 +0000 (13:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1762653 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/flags.xml

index e38b5d8ac5041355d2bbe59bae0fdcd9efc15607..a7b6748e83d594b2570da3a14c8cd90ac2552743 100644 (file)
@@ -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
 <code>/search.php?term=x%20%26%20y%2Fz</code>.</p>
 
+<highlight language="config">
+RewriteRule "^search/(.*)$" "/search.php?term=$1" [B,PT]
+</highlight>
+
 <p>Note that you may also need to set <directive
 module="core">AllowEncodedSlashes</directive> to <code>On</code> to get this
 particular example to work, as httpd does not allow encoded slashes in URLs, and