RobW
Mar 25, 2008Nimbostratus
302 redirect
High my name is Rob and I'm iRule challenged. I'm running v9.4.4 and I have a 443 virtual server with client side SSL processing. I need to handled 302 status codes differently depending on the retu...
if {([HTTP::status] starts_with "3") and ([TCP::server_port] equals "81")} {
HTTP::header replace Location [string map {http: https:} [HTTP::header value Location]]
}
elseif {([HTTP::status] starts_with "3") and ([HTTP::collect] contains "url=http")} {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"}
}
The error is apparently in the "HTTP::redirect" statement. withing the portal users have the ability to click on useful links. These links are both HTTPS and HTTP 302 redirection. The HTTPS links work fine, but the HTTP links are served back to the the client via HTTPS. I need to have the HTTP links served back to the client via HTTP.
-Rob