Forum Discussion
js55161_47239
Nimbostratus
Apr 22, 2008HTTP Redirect
Can someone tell me where i am going wrong with the following irule please? The BIG-IP ltm doesn't like the redirect command so what can i use instead?
when HTTP_REQUEST {
...
Nicolas_Menant
Employee
Apr 23, 2008Hi,
In order to have something more readable you may try to use switch instead of a sequence of if / elseif.
If you have a lot of check to do switch will become more efficient.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*ShP/anqmemlogin.jsp" {
HTTP::redirect "https://wwwpp20.landg.com/ManageYourAccountWeb/ENTRY_POINT"
}
"*bpcentre*" {
HTTP::redirect "https://wwwpp20.landg.com/BPCentre/docbase/bpcentre/index.hml"
}
...
default {
pool ppentry.landg.com
}
}
}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
