Hi Guys, I have a two vips one is at 443 and another one dummy vip with same address at port 80 for http traffic. when users go to all works fine. with other vip if user goes http://domain.com, it is redirecting to https but SSL are lost. here is the Irule when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri] }
in order to solve this issues I am planning to add add “www” like this in the below script. As I dont have test environment setup i want to confirm with some experts before i try. Any suggestion are also welcome.
when HTTP_REQUEST { HTTP::redirect “.[HTTP::host][HTTP::uri]” } }
Note: If you don’t use HTTP to access your web site and also not plan to use it in the future, then it would be far more elegant to send a 301 (Permanent Redirect) instead of 302 (Temporary Redirect) response. Thecommand can only send 301 (Temporary Redirect) responses, but thecommand can either send aorredirect response (see example above).