Forum Discussion
RobW
Nimbostratus
Mar 25, 2008302 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...
RobW
Nimbostratus
Mar 26, 2008when HTTP_RESPONSE {
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
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