Forum Discussion

KDS2014's avatar
KDS2014
Icon for Nimbostratus rankNimbostratus
Nov 16, 2015

http to https redirect

Is there a particular reason for the different redirect offerings………should one be used instead of another for a particular issue?

 

1)iRule to do the redirect.

 

2)custom HTTP Profile to do the redirect.

 

3)Local Traffic Policy to do the redirect.

 

2 Replies

  • No differences mate :)

     

    iRule and CPM (Local Traffic Policy) allow you to "tune" your redirect based on conditions.

     

    Take care.

     

  • I would always use a custom iRule. The built in iRule and traffic policies like to stick in a Server header that has a value of BigIP. Security doesn't like leaking more info than we have to. The noserver flag prevents that from happening.

    when HTTP_REQUEST {
        HTTP::respond 301 noserver Location "https://[HTTP::host][HTTP::uri]" Connection close
    }