F5 support suggested that I post my iRule on Devcentral as they felt there were issues with the iRule. Support felt it was to long and that there might be a better solution.
The purpose of the iRule is so we can migrate from one pool to another pool. Thus, the first list will get smaller in time the second list pointing to the second pool will get larger. Eventually the list will be emiliated once the migration is complete.
The last rediret is to a ERROR.html that warnings the user to check their URL or contact support.
Any help would be appreciated!
when HTTP_REQUEST {
if { [HTTP::uri] contains “/Cust1”
or [HTTP::uri] contains “/Cust2”
or [HTTP::uri] contains “/Cust3”
or [HTTP::uri] contains “/Cust4”
or [HTTP::uri] contains “/Cust5”
or [HTTP::uri] contains “/Cust6”
or [HTTP::uri] contains “/Cust7”
or [HTTP::uri] contains “/Cust8”
or [HTTP::uri] contains “/Cust9”
or [HTTP::uri] contains “/Cust10”
or [HTTP::uri] contains “/Cust11”
or [HTTP::uri] contains “/Cust12”
or [HTTP::uri] contains “/Cust13”
or [HTTP::uri] contains “/Cust14”
or [HTTP::uri] contains “/Cust15”
or [HTTP::uri] contains “/Cust16”
… 17 through 56 omitted to safe space
or [HTTP::uri] contains “/Cust57”}{
pool Pool1
} elseif { [HTTP::uri] contains “/Cust58”}{
pool Pool2
} elseif { [HTTP::uri] contains “/Cust59”}{
HTTP::redirect https://www.somewebsite.com/
} else {
HTTP::redirect http://www.somewebsite.com/Error.html
}
}