Forum Discussion
hooleylist
Jun 08, 2012Cirrostratus
Here's another option that redirects any subdomain for example.com and preserves the requested host and URI in the redirect:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] ends_with ".example.com"}{
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Aaron