Forum Discussion
hooleylist
May 22, 2011Cirrostratus
I think you could do this with string commands more efficiently:
when HTTP_REQUEST {
Check if host doesn't end with .org and has at least one alpha character
if { not ([string tolower [HTTP::host]] ends_with ".org") and [string match {[a-zA-Z]} [HTTP::host]] }{
Redirect to the same host with the last three characters removed and org added
HTTP::redirect "http://[string range [HTTP::host] 0 end-3]org[HTTP::uri]"
}
}
Aaron