Forum Discussion
lunitic_56137
Aug 15, 2012Nimbostratus
Switch statement not working
I have an 11.2 deployment that is using this iRule. The issue is that the Switch statement will not work.
"when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/uri1" -
...
lunitic_56137
Aug 15, 2012Nimbostratus
ok, more details then.
When I go to the VS, with a URI in either the data group list or one of the ones in the IF/ELSE statement, it works fine. If I use URI 1,2,3,or 4 they do not redirect to the node or the URL. I can move the switch statement down between the IF and the ELSE and test any of the URI's 1-4 and they get redirected.
I will try adding the IF/ELSE to the switch statement as you suggested. Thanks Joe.
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