Forum Discussion
Greg_Hammond
Nimbostratus
Mar 24, 2020irule for url redirect based on client ip
I have the following irule on a VIP that is listening on port 80. The developers now need the same (or similar) irule to work on the same VIP listening on port 443. The only real difference is what...
Samir
MVP
Mar 24, 2020you can write something like below. . Just i have corrected the parameter.
when HTTP_REQUEST {
if { ( [IP::addr [IP::client_addr] equals 10.32.96.0/20] ) or ( [IP::addr [IP::client_addr] equals 10.32.128.0/20] ) } {
HTTP::redirect "https://m.eocsubmissionsdev.us.mycompany.com[HTTP::uri]"
} elseif {
pool eocsubmissions3_80-pool
}
}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
