sundogbrew
Jul 30, 2014Altocumulus
Irule redirect question
So I wrote a real simple Irule that redirects if all the nodes are out of the pool
when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { HTTP::redirect "https://blablabla.com" } }
My question is can an I rule take info out of the URL or URI and redirect based on that?
So say my URL is https://funnyapplication.blabla.com and there are no nodes in the pool, can my Irule redirect to say Https://replacementurl/funnyapplication.bla.com where it grabs some piece of the url and puts it in the URI of the redirect path? Thanks as always! Joe