Forum Discussion

ervinc_27883's avatar
ervinc_27883
Icon for Nimbostratus rankNimbostratus
Feb 01, 2012

irule to redirect base on ip and path

This is giving me a rule error wrong args. I'm a newbie and need help on fixing this irule.

 

 

thanks for all your help.

 

 

 

when HTTP_REQUEST {

 

set my_uri [string tolower [HTTP::uri]]

 

 

if { $my_uri starts_with "/irj/portal" and [IP::addr [IP::remote_addr] equals 10.0.0.0 mask 255.0.0.0] } {

 

 

redirect to "http://web1"

 

 

} }

2 Replies