Commit dac3a7a8 authored by Richard Bowen's avatar Richard Bowen
Browse files

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
parent 4cff3787
Loading
Loading
Loading
Loading
+14 −0
Changes for docs/manual/mod/mod_rewrite.html.en: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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>