Forum Discussion
The_Bhattman
Dec 22, 2009Nimbostratus
Hi Vijay,
First glance the synax looks fine. However, if you aren't receiving tcl errors then it's possible that you are not matching up on the URI or the webserver is not picking up the redirection.
Try the following
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/" }
}
}
I hope this helps
Bhattman