Forum Discussion
Mayur_Sutare
Jul 29, 2020MVP
You can use below iRule. Under Allow-List datagroup, you can add host/network which you want to exempt from the redirection.
when HTTP_REQUEST {
if { [HTTP::host] equals "abc.com.vn" } {
if {not ([class match [IP::client_addr] equals Allow-List])} {
HTTP::redirect https://abc.com.vn[HTTP::uri]
}
}
}
Hope it works for you,
Mayur