Forum Discussion
Sirisha_126707
Mar 07, 2017Nimbostratus
iRule Redirection
This is a redirection rule from https://xyz.co.uk to https://abc.co.uk
But only 1 in 10 requests should redirect initially. Follwing is the iRule I have implemented but it gets redirected even in 20...
Leonardo_Souza
Mar 07, 2017Cirrocumulus
Why are using this code "set cookie_value [expr {int(rand()*100)}]" ?
If the cookie does not exist you set it to 1, if exists you increment it. When it reaches 11, you save it as 1. When the cookie value is 1 you redirect.
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