Forum Discussion
iRule to redirect to URLs
Thanks all for your help, this is what finally worked. Notice the placement of the CIDR notation. Also since we use route domains, it needed to be defined by the %1.
when HTTP_REQUEST { if { ( [IP::addr [IP::client_addr]/24 equals 10.50.1.0%1] ) } { HTTP::redirect "http://abc1.test.com"; } elseif { ( [IP::addr [IP::client_addr]/24 equals 10.60.1.0%1] ) } { HTTP::redirect "http://abc2.test.com"; } elseif { ( [IP::addr [IP::client_addr]/24 equals 10.70.1.0%1] ) } { HTTP::redirect "http://abc3.test.com"; } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com