From: Rich Bowen RewriteMap
directive.
- MapType: int
, MapSource: Internal Apache httpd
- function
Here, the source is an internal Apache httpd function. - Currently you cannot create your own, but the following - functions already exist:
+ +When a MapType of int
is used, the MapSource is one
+ of the available internal RewriteMap functions. Currently there
+ is no mechanism for creating your own functions. The available
+ functions are:
+
RewriteMap
directive.
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
:
+
+ 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.
+
RewriteMap
directive.
+
- MapType: int
, MapSource: Internal Apache httpd
- function
Here, the source is an internal Apache httpd function. - Currently you cannot create your own, but the following - functions already exist:
+ +When a MapType of int
is used, the MapSource is one
+ of the available internal RewriteMap functions. Currently there
+ is no mechanism for creating your own functions. The available
+ functions are:
+
RewriteMap
directive.
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
:
+
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
+
MapType: prg
, MapSource: Unix filesystem path to valid regular file