Forum Discussion

Deepak123_16590's avatar
Deepak123_16590
Icon for Nimbostratus rankNimbostratus
Aug 06, 2014

how to do simple redirection using iRule

Hello,

 

I have a site www.myserver.com which is not registered with SSL. But I have a certificate for https://myserver.com. Can anyone help putting an iRule where when user access www.myserver.com it redirect to https://myserver.com ?

 

Much appreciate

 

3 Replies

  • when HTTP_REQUEST {
      if {[HTTP::host] eq "www.myserver.com"} {
        HTTP::redirect "https://myserver.com[HTTP::uri]"
      }
    }
    
    • Kevin_Davies_40's avatar
      Kevin_Davies_40
      Icon for Nacreous rankNacreous
      Don't forget to tick the left of the post that provided the answer for you. This provides recognition to the volunteers help others on this site.