Forum Discussion

2 Replies

  • Hi Ops,

    If you only want to redirect with a URI of / to and everything else to the same host and URI via HTTPS, you could use an iRule like this:

    when HTTP_REQUEST {
        Check for host/uri match
       if { "[HTTP::host][HTTP::uri]" eq "" }{
           Send hardcoded redirect
          HTTP::redirect ""
       } else {
           Redirect to same host/URI via https
          HTTP::redirect "https://[HTTP::host][HTTP::uri]"