Commit 46d65a29 authored by Rich Bowen's avatar Rich Bowen
Browse files

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
parent c52026a4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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