Forum Discussion
Rick_16795
Jul 27, 2007Historic F5 Account
redirect rewrites
Hello,
I'm working with a customer who's app requires the use of redirect rewrites in the hppt profile. However
the last step of their application sends a redirect that points the cus...
Deb_Allen_18
Jul 27, 2007Historic F5 Account
You might be able to swap http profiles for just that one request, but I've never done that so I'm not sure...
I do know for sure that you can selectively re-write server-generated redirects with an iRule.
I would turn off Rewrite Redirects and use an iRule like this to rewrite all but the one to HTTPS:
when HTTP_RESPONSE {
if { [HTTP::status] starts_with "3"}{
if {[string tolower [HTTP::header Location]] != "http://host/logout.html"}{
HTTP::header replace Location [string map -nocase {http:// https://} [HTTP::header Location]]
}
}
}/deb
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
