From 48f72a2e0a241bee9fc2e69993c764f7d9b4e58a Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Thu, 23 Jun 2005 01:17:26 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_rewrite.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 9bf42d7b61..d00dc3df3c 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:

-- 2.40.0