Forum Discussion
Darrin_Wiens_25
Nimbostratus
Apr 29, 2008Redirect to Multiple URLs
I am in the process of moving from a Cisco CSS to the F5 and I have an interesting Redirect issue. On the CSS, I have a content rule that has two services associated with it. Each service is of a re...
Chad_Jenison
Nimbostratus
Jun 30, 2017Here's a revision that avoids Global Variables so as to be CMP safe.
when RULE_INIT {
set static::redirect_targets {{https://www1.example.com/} {https://www2.example.com/} {https://www3.example.com/}}
}
when HTTP_REQUEST {
HTTP::redirect [lindex $static::redirect_targets [expr {[table incr [virtual]_redirect_req_count] % [llength $static::redirect_targets]}]]
}
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
