Randy_Moran_110
Feb 27, 2008Nimbostratus
http-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"
If he's asking for "http://portal.innovation.net/blah/blah", he's directed to https://portal.innovation.net/blah/blah"
In other words, if he's asking for an explicit path, he's redirected to his path via https. If he's not asking for a path, he's directed to https://portal.innovation.net/PortalWAR/appmanager/portal/home.
when HTTP_REQUEST {
if {[HTTP::uri "http://portal.innovation.net"]}{
HTTP::redirect "https://[HTTP::host]:443/PortalWAR/appmanager/portal/home"
} else {
HTTP::redirect "https://[HTTP::host]:443/[HTTP::uri]"
}
}
Is there some error in this rule that would cause it not to work? When I apply it, I get a host unaccessible error.