Forum Discussion
Thomas_Gobet
Sep 16, 2014Nimbostratus
Hi Jack,
You will find below the iRule you need :
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "www.test.com"}{
if {([string tolower [HTTP::uri]] starts_with "/abs") or ([string tolower [HTTP::uri]] starts_with "/def")}{
HTTP::uri /maintenance.html
pool poolname member 10.1.1.1 80
}
}
}
You have to replace pool name value with the good one, it should work as you expected.