Forum Discussion
theizer_91634
Apr 01, 2009Nimbostratus
Thanks for the reply!
I tried your suggestion, but I think I may have something wrong with syntax as nothing redirects when I apply this rule. The iRule editor says it is valid though.
when HTTP_REQUEST {
if { not [HTTP::host] equals "www.domain.com" }{
HTTP::redirect https://www.domain.com
} else {
HTTP::redirect https://[HTTP:host][HTTP::uri]
}
}