Forum Discussion
Vijay_E
Aug 14, 2016Cirrus
This would be a simple iRule for such a redirection:
when HTTP_REQUEST {
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]"
}
Similar redirection but after checking the domain:
when HTTP_REQUEST {
if { [HTTP::host] eq "example.com" } {
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]"
}
}
For LTM Policies: Under the Parameters operand, type the following text in the box:
https://[getfield [HTTP::host] ":" 1][HTTP::uri]