]> granicus.if.org Git - apache/commitdiff
Somehow I just committed the wrong file. This patch adds an example for
authorRich Bowen <rbowen@apache.org>
Thu, 23 Jun 2005 01:17:26 +0000 (01:17 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 23 Jun 2005 01:17:26 +0000 (01:17 +0000)
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

index 9bf42d7b61a9a0e3bc613f6738a032672cbc4c23..d00dc3df3cb6ce878af111e16a38eba6b2744828 100644 (file)
@@ -295,6 +295,20 @@ Apache 2.0.41 and later</compatibility>
       substituted by <em>DefaultValue</em> or by the empty string
       if no <em>DefaultValue</em> was specified.</p>
 
+      <p>For example, you might define a
+      <directive>RewriteMap</directive> as:</p>
+
+      <example>
+      RewriteMap examplemap txt:/path/to/file/map.txt
+      </example>
+
+      <p>You would then be able to use this map in a
+      <directive>RewriteRule</directive> as follows:</p>
+
+      <example>
+      RewriteRule ^/ex/(.*) %{examplemap:$1}
+      </example>
+
       <p>The following combinations for <em>MapType</em> and
       <em>MapSource</em> can be used:</p>