Forum Discussion
Vijay_Krishnan_
Nimbostratus
Dec 22, 2009uri redirection to a virtual server
Hello Mates,
I am trying to create irule with uri mapping. I need to redirect to a virtual server based on the uri. Please see the commands below which I use. For some reason it does...
naladar_65658
Altostratus
Jan 06, 2010You might also try adding "string tolower" to Bhattman's suggestion to rule out case sensitive issues:
when HTTP_REQUEST {
log local0. "The following is the URI: [HTTP::URI]
switch -glob [string tolower[HTTP::uri]] {
"*shared/sso*" { HTTP::redirect "http://DAPPEXTVIP11/"}
"*cml/ccb*" { HTTP::redirect "http://DAPPEXTVIP1/" }
}
}
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