]> granicus.if.org Git - apache/commitdiff
Actually show the example of how to do this.
authorRich Bowen <rbowen@apache.org>
Wed, 28 Sep 2016 13:12:26 +0000 (13:12 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 28 Sep 2016 13:12:26 +0000 (13:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1762651 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/flags.xml

index 3439c6da43e74e88886066d44e7c0f2f57c9714f..7f518aee3d817fe68f0b55874dfda64232ba626f 100644 (file)
@@ -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
 <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