Forum Discussion
Kevin_Stewart
Aug 20, 2013Employee
A 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" } }