Forum Discussion

KJ_50941's avatar
KJ_50941
Icon for Nimbostratus rankNimbostratus
Aug 06, 2012

HTTPS to HTTP redirect

I have two VIPs , one is http and another https, there is going to be a Maintanance on webserer, like to redirect to maintanance page , I did a test and was able to redirect from http to http, however https to http failed, I am doing this with temp VIP so no pool is assigned to 443_VS. here what I have for irule on 443_VS.

 

 

when HTTP_REQUEST {

 

HTTP::redirect ]

 

}

 

 

I also try this it didn't work.

 

 

when HTTP_REQUEST

 

{ if { ([HTTP::uri] equals "/")}{ HTTP::redirect "http://www.example.com/index.htm" } }

 

 

the page I like to redirect from https to http is:http://www.example.com/index.htm

 

 

please help.