Forum Discussion
kris_52344
Nimbostratus
Aug 13, 2013Need help on uri redirection i-rule
We configure below i-Rule
when HTTP_REQUEST {
if {([HTTP::uri] starts_with "/useradmin") or ([HTTP::uri] starts_with "/sld") or ([HTTP::uri] starts_with "/nwa") or ([HTTP::uri] starts_with "/ind...
Torti
Cirrus
Aug 13, 2013hi,
- use switch instead of if! Its easier to read and a little bit faster. link text
- you have to put everything in the right order. "/irj/go/km/docs/documents/AxisBank/" will be covered by "/irj/go/km/docs/documents/". So if you want to do other things (no redirect) with every request containing AxisBank, you have to select it first.
try this one:
switch -glob [HTTP::uri] {
"/irj/go/km/docs/documents/AxisBank/*" {
do nothing - let through
}
"/irj/go/km/docs/documents/*" -
"/useradmin*" -
"/uddiclient" -
"..." {
HTTP::redirect "https://straight2axis.axisbank.co.in/irj/portal"
}
}
regards
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