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

Umar_Raoof_1332's avatar
Umar_Raoof_1332
Icon for Nimbostratus rankNimbostratus
Oct 16, 2015

Simple redirect irule not working in V11... its working in V10 for long.... need help?

when HTTP_REQUEST { if { [HTTP::path] eq "/" } { HTTP::redirect "http://[HTTP::host]/XXX" } }

 

1 Reply

  • The code looks fine. What indication are you getting that it's not working? Perhaps some additional logging will give you more information.

     

    when HTTP_REQUEST {
        log local0. "path = [HTTP::path]"
        if { [HTTP::path] eq "/" } {
            log local0. "redirecting to http://[HTTP::host]/XXX"
            HTTP::redirect "http://[HTTP::host]/XXX"
        }
    }