Forum Discussion

Brian_DeKemper_'s avatar
Brian_DeKemper_
Icon for Nimbostratus rankNimbostratus
Sep 21, 2006

force a redirect from HTTP virtual server to HTTPS virtual server

I have a Virtual Server set up for a website that has HTTP as the current service port. I just set up another Virtual Server going to the same site, but I applied my new SSL certificate profile to that Virtual Server, so now the site is accessible via HTTP and also via HTTPS.

 

 

I'd like to get an iRule that will force all traffic going to my HTTP Virtual Server over to the new HTTPS Virtual Server so all traffic is secure.

 

 

Can anyone help with an iRule for something like this?

 

 

Thanks

 

 

BD
  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Hi BD -

     

     

    This rule from the codeshare should work for you:

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/HTTPtoHTTPSredirect.html

     

    Click here

     

     

    /deb