Hi All, Does anyone on the list have experience writing iRules for F5's BIG-IP product for URL redirection? We are going to be putting our MidTier servers behind a BIG-IP load balancer and want to be able to redirect requests from "/" to "/arsys/home" so that people can simply type in the name of the Remedy alias and get redirected to the home page. We are currently doing this in the web server by adding the following Apache rewrite rule:
RewriteRule ^/$ /arsys/home [R] This has the effect that if the person goes to "http://server/" (or simply types "server" in the address bar of their browser), they'll get redirected to "http://server/arsys/home". So, this works fine, but we need to manually configure each web server to do the redirect. I understand that the BIG-IP load balancer can do redirection as well using iRules, and that seems like it would be a better place to put this redirect, because you do it once, and it's done - we could bring additional web servers online without having to configure each one for the redirect. However our network engineer is telling us that with this particular redirection, the load balancer would get into an infinite loop. This doesn't sound right to me, and makes me think that he may just not be sure how to do it correctly, so I thought I would look into it a little more. Does anyone know if this is possible with the BIG-IP and how to correctly write the iRule for something like this? As a start, I figure it's probably something like this: when HTTP_REQUEST { if { [HTTP::uri] == "/" } { HTTP::redirect <something or other>/arsys/home } } Never having written an iRule, however, I could be completely off... We're on version 9.4.3 of the BIG-IP. Thanks, Lyle NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

