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, 2007Hi Al,
The else should be the last clause:
} elseif {
something
} elseif {
something
} else {
default action
}Also, you can set the $uri variable to lower case and do just one comparison:
...
elseif {[string tolower $uri] starts_with "/Dynasearch"}{
HTTP::redirect "http://www.palgrave-journals.com/common/access/replaced.vm"
}
...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
