The lc function converts all the US ASCII characters in the string to lowercase and returns the result.
lc(string)
The following table describes the argument for the expression function.
Table A–10 lc Argument
Argument |
Description |
---|---|
string |
The string the expression function converts to lowercase |
The following obj.conf code can be used to redirect clients who erroneously used uppercase characters in the request URI to the equivalent lowercase URI:
<If code == 404 and not -e path and -e lc(path)> Error fn="redirect" uri="$(lc($uri))" </If>