From: Rich Bowen Date: Thu, 23 Jun 2005 01:17:26 +0000 (+0000) Subject: Somehow I just committed the wrong file. This patch adds an example for X-Git-Tag: 2.1.6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48f72a2e0a241bee9fc2e69993c764f7d9b4e58a;p=thirdparty%2Fapache%2Fhttpd.git Somehow I just committed the wrong file. This patch adds an example for RewriteMap git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@193036 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 9bf42d7b61a..d00dc3df3cb 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -295,6 +295,20 @@ Apache 2.0.41 and later substituted by DefaultValue or by the empty string if no DefaultValue was specified.

+

For example, you might define a + RewriteMap as:

+ + + RewriteMap examplemap txt:/path/to/file/map.txt + + +

You would then be able to use this map in a + RewriteRule as follows:

+ + + RewriteRule ^/ex/(.*) %{examplemap:$1} + +

The following combinations for MapType and MapSource can be used: