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

yuanqiang_22112's avatar
yuanqiang_22112
Icon for Nimbostratus rankNimbostratus
Oct 27, 2016

https 302

Hello When client browser input " redirect http to https ;If uri not contain " not redirect . I write the irules below ,please help me ensure it is right or not ?

 

1 Reply

  • First of all,

    You have uploaded wrong screenshot. 😉

    Also you can try below irule..

    when HTTP_REQUEST {
        if { ([string tolower [HTTP::host]] equals "web.cnrmall.com") and ([HTTP::uri] equals "/api/pay/alipay/notify") } {
            HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
        } else {
            return
        }
        }
    

    -Jinshu