Jamshid_40364
Jun 02, 2010Nimbostratus
Rule to automatically "follow" an internal redirect?
Hi, I'm new to iRules. I see the example of detecting a redirect and rewriting the Location header:
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/220/Rewriting-Redirects.aspx
but is it possible to instead follow the redirect within BigIP (an internal redirect?), so that the HTTP 301/302 does not go back to the browser?
E.g., browser requests www.example.com/foo/bar.html. BigIP load balances this request to either internal1.example.com or internal2.example.com. But, internal1 might respond with a 301 with "Location: http://internal2.example.com/foo/bar.html". The browser cannot see internal1 / internal2.
Thanks, Jamshid