Forum Discussion
Michael_Yates
May 23, 2011Nimbostratus
Yet another way to do it üôÇ
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ends_with "com" } {
set host [string map -nocase {com org} [HTTP::host]]
HTTP::redirect "http://$host[HTTP::uri]"
}
}