Forum Discussion

cymru81's avatar
cymru81
Icon for Altocumulus rankAltocumulus
Jul 25, 2014

ssl re-direct

Hi

 

Ive looked through a few irule examples but cant find exactly what I need....basically I want to do a https redirect on a VS so..

 

user goes to https://site.name.com/ but I want it to re-direct of to https://site.name.com/abc - is this easily achieved?

 

Thanks

 

3 Replies

  • when HTTP_REQUEST {
        if { [HTTP::uri] equals "/" } {
            HTTP::redirect "https://[HTTP::host]/abc"
        }
    }
    

    You must of course also have a client SSL profile applied to the VIP to be able to process the layer 7 HTTP traffic.

  • Thanks for that , ill give it a go! I have a client ssl profile setup which contains the cert etc. do I need to set anything else in this profile?