I just did my first (pool switching) irule, now they threw me a curve ball.
I was feeling pretty good with my little irule that, depending on the first few letters of the uri would switch pools:
when HTTP_REQUEST { Check the requested path with wildcard matching switch -glob [HTTP::path] { "/rradmin*" { /rradmin URI log local0. "[IP::remote_addr]: Request for /rradmin sent to pool pool_rradmin_ecms.gov_new_443" pool pool_rradmin_ecms.epa.gov_443
...and so on. had a few other ones, erma*, etc...NOW they want actual redirects. what I dont understand is, how can I do a redirect like:
if the user types in http://ecms.epa.gov/erma /login.htm?action=search then redirect them to: http://ecms.epa.gov/erma2/login.htm?action=search
wont this bypass the ltm basically? its not going to send it to a pool. IM pretty sure IM missing a big concept here, and Ill keep reading, but if someone could whack hit me in the right direction, it would help.
thanks!
dave