multiple irule processing
I have 2 irules linked to a virtual server.
irule 1 redirects to a local maintenance page if all of the nodes our down.
when HTTP_REQUEST { if { [active_members [LB::server pool]] < 1 } { HTTP::respond 200 content [ifile get irif-unavail.htm ] }}
irule2 redirects a user to a specific child directory if the the request is for the root web site
when HTTP_REQUEST { if { [HTTP::uri] equals "/" } { HTTP::redirect "https://[HTTP::host]/childdir/" } }
irule1 works and redirects the user to the maintenance page if the user goes to the childdir irule2 works if the pool members are available. irule1 doesn't work though if the user goes to the root site address
I have tried changing the order in the gui and tried adding a lower priority to irule1.
Very new to F5's so any help greatly appreciated.