From 45c0d60dffcd02d690aaa5e54e8c1d6ccfc4db78 Mon Sep 17 00:00:00 2001
From: Rich Bowen
Date: Wed, 28 Sep 2016 13:13:01 +0000
Subject: [PATCH] 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
---
docs/manual/rewrite/flags.xml | 4 ++++
1 file changed, 4 insertions(+)
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
--
2.47.3