Forum Discussion
Chris_Miller
Jul 06, 2010Altostratus
when HTTP_REQUEST {
Check if domain is "www.domain.com"
if {[string tolower [HTTP::host]] eq "ww2.domain.com"}{
Check if URI isn't /directory
if {[HTTP::uri] contains "/directory"} {
return
}
}
Redirect everything else to HTTPS
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}