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 25, 2008Hello,
When I change my iRule to the following, I receive a error in the iRule editor.
when 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]"}
}
Thanks,
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