Forum Discussion
Leonardo_39231
Jul 30, 2010Nimbostratus
OK I figured it out... I took out the quotation marks and it's all good now! Thanks for looking at this!!
rule special_rule {
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
set location [HTTP::header Location]
HTTP::header replace Location [string map {"https://" "http://"} [HTTP::header Location]]
log local0. "redirected to $location and changed https to http"
}
}
}