Forum Discussion

Kalana's avatar
Kalana
Icon for Nimbostratus rankNimbostratus
Feb 26, 2016

redirecting http host to same https modified uri

Hi,

 

I would like to achieve following scenario,

 

http://abc.xyz.com ------> Redirect to https://abc.xyz.com/abc

 

http to https ltm built in conversion has been assigned and functioning, few attempts resulted in creating a redirection loop.

 

Cheers,

 

Kalana

 

1 Reply

  • Hi Kalana,

    you could copy and then customize the build-in "_sys_https_redirect" iRule as needed. To change redirect to a specific and fixed URI you could use the iRule below as a starting point...

    when HTTP_REQUEST {
        HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/insert_your_uri"
    }
    

    Note: You have to assign the iRule to the HTTP virtual server only.

    Cheers, Kai