Forum Discussion

2 Replies

  • Hi Ops,

    If you only want to redirect www.123.com with a URI of / to www.abc.com 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 "www.123.com/" }{
           Send hardcoded redirect
          HTTP::redirect "http://www.abc.com/"
       } else {
           Redirect to same host/URI via https
          HTTP::redirect "https://[HTTP::host][HTTP::uri]"
       }
    }

    Aaron