Forum Discussion
Freddy_Delgado_
Nimbostratus
Mar 31, 2014Irule with Multiple URL's
I'm trying to figure out how to configure a simple http redirect irule,
however the irule round robins 4 different URL's, does anyone know how to write this?
VIP 1.1.1.1 -----> www.abc.com
...
Freddy_Delgado_
Nimbostratus
Mar 31, 2014I guess that would be for a redirect to https, I would need something similar to this irule but instead of just two urls, I need it to alternate between 4 urls.
when RULE_INIT { set ::whichone 0 } when HTTP_REQUEST { switch $::whichone { 0 { HTTP::redirect "http://www.test.com” } 1 { HTTP::redirect "http://www.test1.com” } } set ::whichone [expr ! $::whichone]
- Cory_50405Mar 31, 2014
Noctilucent
Is this iRule working to redirect between just two sites?
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