Forum Discussion
Ralph_Duane_761
Nimbostratus
May 13, 2005Rookie needs help. iRule url redirection
I am a newbie with BigIP and not much of a coder either. I want to use BigIP to redirect traffic based on the url. If url contains tsa then goto one webpool and if it contains either tsa_test or tsa_t...
unRuleY_95363
May 18, 2005Historic F5 Account
The problem here is due to the use of braces instead of parenthesis.
You need to be aware/careful about the when to use braces {} vs. parenthesis () in an expression. This is actually a case where you wanted parenthesis not braces. The use of braces was causing the not operator to work on the string {$uri_info ends_with /} and not the result of the expression ($uri_info ends_with /). I'm sorry if this is confusing, but that is a nuance of Tcl.
So, the correct form of the problematic line would be:
if {not ($uri_info ends_with /) } { 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
