From: Rich Bowen
Date: Thu, 23 Jun 2005 01:12:19 +0000 (+0000)
Subject: Brief example of actually using a map, once defined.
X-Git-Tag: 2.1.6~13
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fd2c441705fde52b551f7b02e6283e0ac115de2;p=apache
Brief example of actually using a map, once defined.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@193035 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en
index 62054a9be9..19cadd998e 100644
--- a/docs/manual/mod/mod_rewrite.html.en
+++ b/docs/manual/mod/mod_rewrite.html.en
@@ -789,6 +789,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: