Forum Discussion
Randy_Moran_110
Feb 28, 2008Nimbostratus
Yeah that seems to do what I need. Thanks a lot for the help. One last question concerning this rule: If i want to say, basically, "if there is anything after the host name, redirect it to the hostname and whatever follows in the uri," how would I do that?
when HTTP_REQUEST {
switch [HTTP::host] {
"portal.innovation.net" {
switch [HTTP::uri] {
"/" { HTTP::redirect "https://portal.innovation.net/PortalWAR/appmanager/portal/home" }
"/ProducerWAR/producer?wsdl" { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
}
}
}
Where it's bolded is what I'm talking about. Is there some kind of "wildcard" character I can use instead of an explicit uri?