Forum Discussion
Kevin_Stewart
Sep 03, 2013Employee
That's one way to do it. You can also use Nitass' [string map ] recommendation, or even some [findstr ] syntax:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] starts_with "www." } {
HTTP::redirect "https://[findstr [string tolower [HTTP::host]] "www." 4][HTTP::uri]"
}
}