From: Rich Bowen
Date: Wed, 17 Apr 2013 01:51:22 +0000 (+0000)
Subject: Rearranges the sections so that 'int' is first, where it makes more
X-Git-Tag: 2.5.0-alpha~5575
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ae3cff5b44a3d8c3404bcc9fc108af0ee737ee0;p=apache
Rearranges the sections so that 'int' is first, where it makes more
sense, so that types progress in order of complexity, rather than some
other arbitrary order.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1468709 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/rewritemap.xml b/docs/manual/rewrite/rewritemap.xml
index 47e247f4d2..888da63eb9 100644
--- a/docs/manual/rewrite/rewritemap.xml
+++ b/docs/manual/rewrite/rewritemap.xml
@@ -109,6 +109,51 @@ once created, in your RewriteRule
and
may be used, and give examples of each.
+
+ int: Internal Function
+
+ When a MapType of int
is used, the MapSource is one
+ of the available internal RewriteMap functions. Module authors can provide
+ additional internal functions by registering them with the
+ ap_register_rewrite_mapfunc
API.
+ The functions that are provided by default are:
+
+
+
+ - toupper:
+ Converts the key to all upper case.
+ - tolower:
+ Converts the key to all lower case.
+ - escape:
+ Translates special characters in the key to
+ hex-encodings.
+ - unescape:
+ Translates hex-encodings in the key back to
+ special characters.
+
+
+
+ To use one of these functions, create a RewriteMap
referencing
+ the int function, and then use that in your RewriteRule
:
+
+
+ Redirect a URI to an all-lowercase version of itself
+
+
+RewriteMap lc int:tolower
+RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
+
+
+
+ Please note that the example offered here is for
+ illustration purposes only, and is not a recommendation. If you want
+ to make URLs case-insensitive, consider using
+ mod_speling instead.
+
+
+
+
+
txt: Plain text maps
@@ -284,51 +329,6 @@ by many requests.
-
- int: Internal Function
-
- When a MapType of int
is used, the MapSource is one
- of the available internal RewriteMap functions. Module authors can provide
- additional internal functions by registering them with the
- ap_register_rewrite_mapfunc
API.
- The functions that are provided by default are:
-
-
-
- - toupper:
- Converts the key to all upper case.
- - tolower:
- Converts the key to all lower case.
- - escape:
- Translates special characters in the key to
- hex-encodings.
- - unescape:
- Translates hex-encodings in the key back to
- special characters.
-
-
-
- To use one of these functions, create a RewriteMap
referencing
- the int function, and then use that in your RewriteRule
:
-
-
- Redirect a URI to an all-lowercase version of itself
-
-
-RewriteMap lc int:tolower
-RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
-
-
-
- Please note that the example offered here is for
- illustration purposes only, and is not a recommendation. If you want
- to make URLs case-insensitive, consider using
- mod_speling instead.
-
-
-
-
-
prg: External Rewriting Program
When a MapType of prg
is used, the MapSource is a