Forum Discussion
JRahm
Oct 07, 2013Admin
you don't have to use an iRule in 11.4.x, you can use the centralized policy matching functionality that is replacing the httpclass. Here's a tmsh example of simple redirecting host to ssl:
ltm policy cpm.ssl_redirect {
controls { forwarding }
requires { http }
rules {
cpm.ssl_redirect.rule {
actions {
0 {
http-reply
redirect
location https://[HTTP::host][HTTP::uri]
}
}
conditions {
0 {
http-host
host
ends-with
values { hostname.net }
}
}
ordinal 1
}
}
strategy first-match
}