Forum Discussion
Albert__Tase_70
Nimbostratus
Sep 07, 2007can I add an elseif statement that has an else at the end followed by more elseif staemkents
My problem is I am trying to migrate an irule from 4.6 code to 9.03 code and in 4.6 the following is present :
else if (http_uri starts_with "/cgi-taf/subscribe_link.taf") {
redirect to "http://www.palgrave-journals.com/subscribe"
}
else if (http_uri starts_with "/dynasearch" or http_uri starts_with "/Dynasearch" or http_uri starts_with "/DynaSearch") {
redirect to "http://www.palgrave-journals.com/common/access/replaced.vm"
}
else {
use pool palgrave-foxtrot
}
}
else if (http_uri starts_with "/cgi-bin" or http_uri starts_with "/services/link.taf" or http_uri starts_with "/ebd/cpd/" or http_uri starts_with "/doifinder/10.1057" or http_uri starts_with "/doifinder/10.1080" or http_uri == "/login/login.taf") {
use pool nature
}
I need to know if I can convert
else if (http_uri starts_with "/dynasearch" or http_uri starts_with "/Dynasearch" or http_uri starts_with "/DynaSearch") {
redirect to "http://www.palgrave-journals.com/common/access/replaced.vm"
}
else {
use pool palgrave-foxtrot
}
}
into the body of the irule for 9.3.0 so far all attemps at adding the else have failed this migration takes place tommorrow I need to make sur it will work please help me
Thanks
AL
No RepliesBe the first to reply
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