Forum Discussion
Kevin_Stewart
Jul 24, 2015Employee
If it's a 302, then you're simply looking for a Location header in the response:
when HTTP_RESPONSE {
if { ( [HTTP::header exists Location] ) and ( [HTTP::header Location] contains ":8096" ) } {
this is an internal redirect - change it
HTTP::header replace Location "https://somewhere.else.com"
}
}
You'd only need a STREAM profile and iRule if the :8096 redirect was part of the response payload (body not header).