SysAdmins_23367
Apr 09, 2010Nimbostratus
can't get HTTP::redirect to work
I'm attempting to make a simple iRule which will redirect a user with a defined IP address and allow everyone else who connects to the default pool. The problem is that everytime I associate the following iRule to my virtual server I get a "page cannot be displayed" error. Even if I'm connecting from an IP which is not 192.168.98.232 I still get the page cannot be displayed error. I am able to access http://192.168.30.53/index.html directly from my PC and the F5 so it's not a firewall issue. Any help would be greatly appreciated.
when HTTP_REQUEST {
if { [[IP::client_addr] equals 192.168.98.232]}
{ HTTP::redirect http://192.168.30.53/index.html }
else { forward }
}