For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

3 Replies

  • rule rules { when HTTP_REQUEST { set host [string tolower [HTTP::host]] if {$host ends_with "abc.com"} { HTTP::redirect "https://[string map {"abc.com" "xyz.com"} $host][HTTP::uri]" } } }

     

    Will this work?

     

  • You can save a step this way:

    when HTTP_REQUEST { 
        if { [string tolower [HTTP::host]] ends_with "abc.com" } { 
            HTTP::redirect "https://[string map -nocase {"abc.com" "xyz.com"} [HTTP::host]][HTTP::uri]" 
        } 
    }