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"...
The_Bhattman
Nimbostratus
Feb 28, 2008Try this
when HTTP_REQUEST {
if {[HTTP::host equals "portal.innovation.net"]} {
HTTP::redirect "https://[HTTP::host]/PortalWAR/appmanager/portal/home"
} else {
HTTP::redirect "https://[HTTP::host]/[HTTP::uri]"
}
}I would also look into the switch statement which executes a bit faster then IF-ELSE
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
