Forum Discussion

jackster_47376's avatar
Icon for Nimbostratus rankNimbostratus
Oct 14, 2011

Newbie IRule Question on Redirects

I'm sorry but I'm relatively new to IRules and am having trouble getting an IRule to redirect to another site when traffic comes into a VIP.



I have this internal URL: which resolves to the VIP address of on port 80. Behind this VIP, I only have one test web server ( that has a basic splash page. I created a new IRule called Test-redirect which is set to redirect to another internal web is the rule:





{ if {[HTTP::uri] equals {}}


{HTTP::uri {} } }



I applied this IRule to my VIP but when I go to , I don't get redirected but get a 404 error instead.



Can anyone help me get this working?







2 Replies