Description: Specifies the location of the rewrite map using the syntax MapType:MapSource. LiteSpeed's rewrite engine supports three types of rewrite maps: - Standard Plain Text
MapType: txt; MapSource: file path to a valid plain ASCII file. Each line of this file should contain two elements separated by blank spaces. The first element is the key and the second element is the value. Comments can be added with a leading "#" sign. - Randomized Plain Text
MapType: rnd; MapSource: file path of a valid plain ASCII file. File format is similar to the Standard Plain Text file, except that the second element can contain multiple choices separated by a "|" sign and chosen randomly by the rewrite engine. - Internal Function
MapType: int; MapSource: Internal string function 4 functions are available: - toupper: converts lookup key to upper cases.
- tolower: converts lookup key to lower cases.
- escape: perform URL encoding on lookup key.
- unescape: perform URL decoding on lookup key.
The following map types available in Apache have not been implemented in LiteSpeed: Hash File and External Rewriting Program. The implementation of LiteSpeed's rewrite engine follows the specifications of Apache's rewrite engine. For more details about rewrite map, please refer to Apache's mod_rewrite document. |