Forum Discussion
sundogbrew
Altocumulus
Feb 23, 2017Irule for just redirecting traffic
Hey guys, came across some examples of redirecting based on IP address. I want to say this group of IPs gets redirected to this URL and that group of IPs gets redirected to that URL. I don't want a...
Vijay_E
Cirrus
Feb 23, 2017Try:
when HTTP_REQUEST {
if { [class match [IP::remote_addr] equals My_Subnets] } {
HTTP::redirect "https://site1.com"
} else {
HTTP::redirect "https://site2.com"
}
}
Edit: Removed $ from data group name.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects