Forum Discussion
Dean_Brown_01_1
Nimbostratus
Aug 20, 2013Can Big-IP Handle Outside Site redirects transparently to client
I am receiving a web client url that gets redirected to an outside site under certain circumstances. That outside site then returns a redirect request (302) that would ordinarily be returned back to...
Kevin_Stewart
Employee
Aug 20, 2013A couple of considerations.
-
The [HTTP::is_redirect] command detects the presence of a 30x status message in a response. It has no meaning in an HTTP request.
-
If the 30x response is not flowing through the BIG-IP, an iRule can't see it. In other words, if the outside site issues a redirect, the BIG-IP would not see it.
-
If capturing redirects in a response, there are a few things you can do, but probably one of the easiest is to simply rewrite the Location header. Example:
when HTTP_RESPONSE { if { [HTTP::is_redirect] } { HTTP::header remove Location HTTP::header insert Location "https://www.somwehere.else.com" } }
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