You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2016/09/28 13:13:01 UTC
svn commit: r1762653 -
/httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml
Author: rbowen
Date: Wed Sep 28 13:13:01 2016
New Revision: 1762653
URL: http://svn.apache.org/viewvc?rev=1762653&view=rev
Log:
Show the example of how to do what you said to do
Modified:
httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml?rev=1762653&r1=1762652&r2=1762653&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/flags.xml Wed Sep 28 13:13:01 2016
@@ -91,6 +91,10 @@ isn't a valid URL, and so would be encod
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