Forum Discussion
hooleylist
Nov 12, 2007Cirrostratus
Hi,
Here's an example that redirects requests which match a specific host header to the same Host and URI over https:
when HTTP_REQUEST {
check if Host header is www.testing.com
if {[string tolower [HTTP::header value Host]] eq "www.testing.com"}{
Redirect to same Host and URI over https
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
Aaron