Forum Discussion
Albert__Tase_70
Nimbostratus
Sep 07, 2007trying to add the below to exsiting irule and keep getting errors please help
} elseif { ($uri starts_with "/dynasearch") || ($uri starts_with "/Dynasearch") || ($uri starts_with "/DynaSearch") } {
HTTP::redirect "http://www.palgrave-journals.com/common/access/replaced...
hoolio
Cirrostratus
Sep 07, 2007The structure for an if statement is normally:
if {some condition}{
do something
} elseif {some other condition}{
do something else
} elseif {some other condition}{
do something else
} else {
take some default action
}All statements after the first 'if' are optional. Logically, you wouldn't want to put an else anywhere in the middle of the rule, as it would match any case up til then and stop the rule from ever processing any of the subsequent elseif's.
If you want to perform other tests after the checks you posted, you could change the else to an elseif.
Also, are you running 9.0.3 or 9.3.0? 9.0.3 is a very old version with a lot of issues. You should consider upgrading to the latest maintenance release in the 9.3.x branch.
Aaron
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
