solaikumar_1217
Jan 12, 2016Nimbostratus
HTTPS to HTTPS redirection using iRules
Dear All,
I have got one new requirement in LTM to forward the HTTPS/HTTP request to instead of or http://your-domain.com/. Have written iRule as follows .For HTTP request everything works fine , but HTTPS it is not(I feel some decryption required at F5 level). Please suggest.
Note : The main reason is that the user is getting Apache webpage when they access the root URI ,whereas actual resource is available at /xyz. I am also aware that there is an option at server level, but still looking for solution at HLB level.
Irule details :when HTTP_REQUEST {
if { ([HTTP::uri] == "/") or ([HTTP::uri] == "https://your-domain.com")} {
HTTP::redirect https://your-domain.com/xyz/
}
else {HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
With Regards, Solaikumar.k