Sun Java System Web Server 7.0 Update 5 Administrator's Configuration File Reference

lc

The lc function converts all the US ASCII characters in the string to lowercase and returns the result.

syntax

lc(string)

Arguments

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 

Example

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>

See Also

uc