Forum Discussion
hooleylist
Oct 02, 2006Cirrostratus
Hi,
If the original 302 redirect sent from the server contains a port, you can just add the original port to the rule in the string to replace. You don't need to specify the port in the string you are putting in, if it's 80, as it's the default port for http.
when HTTP_RESPONSE {
if { [HTTP::is_redirect] && [string tolower [HTTP::header Location]] contains "host_to_replace:8060" }{
HTTP::header replace Location [string map -nocase {"host_to_replace:8060" "new_host"} [HTTP::header Location]]
}
}
Aaron