Forum Discussion

Siddharth_Sezhi's avatar
Siddharth_Sezhi
Icon for Nimbostratus rankNimbostratus
Sep 28, 2006

https to https redirect

Hi,

 

 

I have seen options to do http to https redirect. Here is a peculiar requirement. We wanted to redirect https to https. here is wat we wanted to do exactly is the enduser types the url https://ondemand.com it shld get redirected to https://ondemand.com/ier,

 

 

Kindly send in ur suggestions and help me.

 

 

Thanks and Regards

 

Siddharth S

1 Reply

  • Hi Siddharth,

    As long as you're using a client SSL profile to decrypt the HTTPS traffic, you can use an iRule to redirect to an HTTPS URL. The client SSL profile is necessary for TMM to inspect the HTTP content.

    You can use HTTPS in the redirect like this:

    
    when HTTP_REQUEST {
       if { [HTTP::uri equals "/"] }{
          HTTP::redirect "https://ondemand.com/ier"
       }
    }

    On the other hand, if TMM isn't decrypting the HTTPS, you won't be able to issue a redirect in an iRule.

    Aaron