Forum Discussion
Randy_Moran_110
Nimbostratus
Feb 27, 2008http-to-https redirect problem
Hi all,
I'm trying to get the following to work. If the client is asking for "http://portal.innovation.net", he's directed to "https://portal.innovation.net/PortalWAR/appmanager/portal/home"...
Randy_Moran_110
Nimbostratus
Feb 28, 2008Yeah 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?
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
