Forum Discussion
Apr 30, 2014
Maybe something like this?
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
set location [string tolower [HTTP::header values Location]]
if { $location contains "workspace.mydomain.com" } {
HTTP::header replace Location [string map {"workspace.mydomain.com" "2.2.2.2"} $location]
}
}
}
/Patrik