]> granicus.if.org Git - apache/commitdiff
Brief example of actually using a map, once defined.
authorRich Bowen <rbowen@apache.org>
Thu, 23 Jun 2005 01:12:19 +0000 (01:12 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 23 Jun 2005 01:12:19 +0000 (01:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@193035 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.html.en

index 62054a9be9312129796fba22dab898392c5131f6..19cadd998e58280114afa5390e62ac7437de02f6 100644 (file)
@@ -789,6 +789,20 @@ Apache 2.0.41 and later</td></tr>
       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
+      <code class="directive">RewriteMap</code> as:</p>
+
+      <div class="example"><p><code>
+      RewriteMap examplemap txt:/path/to/file/map.txt
+      </code></p></div>
+
+      <p>You would then be able to use this map in a
+      <code class="directive">RewriteRule</code> as follows:</p>
+
+      <div class="example"><p><code>
+      RewriteRule ^/ex/(.*) %{examplemap:$1}
+      </code></p></div>
+
       <p>The following combinations for <em>MapType</em> and
       <em>MapSource</em> can be used:</p>