From 3fd2c441705fde52b551f7b02e6283e0ac115de2 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Thu, 23 Jun 2005 01:12:19 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_rewrite.html.en | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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:

-- 2.47.2