Forum Discussion
The_Bhattman
Feb 28, 2008Nimbostratus
Here is a better piece that is more specific to what the user enters, rather then using IF-ELSE statement i used the Switch statement.
when HTTP_REQUEST {
switch [HTTP::URI] {
"portal.innovation.net" {
switch [HTTP::uri] {
"/" { HTTP::redirect "https://[HTTP::host]/PortalWAR/appmanager/portal/home" }
"/blah/blah" { HTTP::redirect "https://[HTTP::host]/[HTTP::uri]" }
}
}
}
}
For more information about switch please take a look a the following link
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=129
Hope this helps.