Rob_Morhaime_11
Aug 20, 2008Nimbostratus
Simple iRule not working - is it my "string map" syntax?
This seems like a simple iRule, but when applied I get socket errors. Here's the rule:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] }{
if { [HTTP::header Location] contains "PageMustBeSecure.htm" }{
HTTP::header replace Location "[string map -nocase {"http://" "https://"} [HTTP::header Location]]"
}
}
}
Is it the quotes in my string map? I swear I saw that syntax somewhere, but now I can't find it. The LTM is running 9.1.0.