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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fd2c441705fde52b551f7b02e6283e0ac115de2;p=thirdparty%2Fapache%2Fhttpd.git
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 62054a9be93..19cadd998e5 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: