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

1 Reply

  • The Request Target path will never match the empty string. There is always a leading slash (/), even if it is implicit. You can also revise your rule somewhat to reduce the number of expansions and repeat branches:

    when HTTP_REQUEST {
        if { [HTTP::path] eq "/" } {
            switch [string tolower [HTTP::host]] {
                "mail.xin.com" -
                "mail.youxinpai.com" {
                    HTTP::respond 301 Location "https://mail.xin.com/owa"
                    return
                }
            }
        }
        
        reject
    }
    

    See the following recipe for an explanation on the use of

    HTTP::path
    vs.
    HTTP::uri
    and the
    HTTP::respond 301
    vs.
    HTTP::redirect
    :