Commit 8357ee62 authored by Richard Bowen's avatar Richard Bowen
Browse files

A small example of RewriteMap.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@193034 13f79535-47bb-0310-9956-ffa450edef68
parent 62a2a8ed
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -967,6 +967,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>

+14 −0
Original line number Diff line number Diff line
@@ -496,6 +496,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>