Forum Discussion
Chris_Grant
Sep 20, 2017Employee
This might help: https://devcentral.f5.com/articles/irules-101-02-if-and-expressions
Normally you'd use a ! to negate a match, so
when HTTP_REQUEST {
if { ([HTTP::host] != "orders.widgets.com") } {
HTTP::redirect "https://orders.widgets.com/redirectpage.html"
}
}
Don't forget to use string tolower before you try to match.