Forum Discussion

adrian_171483's avatar
Jan 12, 2015

will this irule work?

Need a rule to do this :

 

client comes into the VS with "/admin" in the URI.. if they have /admin then want to be redirected to come back with /someother/index in the URI and drop into the ADMIN POOL (retaining the hostname)

 

if they dont have it, then drop to MY-OTHER-POOL

 

when HTTP_REQUEST { if {[HTTP::uri] contains "/admin"} {HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/someother/index" } if {[HTTP::uri] contains "/someother/index"} pool MY-ADMIN-POOL } else {pool MY-OTHER-POOL} }

 

17 Replies