For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

slackwaresuppor's avatar
slackwaresuppor
Icon for Nimbostratus rankNimbostratus
May 21, 2008

https redirection

ok guys.. i have my http-https setup.. but this is what i want to do

 

 

if someone goes to https://domain.com they get the site cert error

 

 

i want : https://domain.com redirect to https://www.domain.com

 

 

any ideas?? and does my 443 profile have to have http profile for irules?

2 Replies

  • Slack,

     

     

    Is the LTM doing decryption of the traffic? Are you using the Client_SSL profile?
  • Hi,

     

    You can match on the Host header.

     

    For example you redirect using the same uri, but on the correct hostname

     

     

    when HTTP_REQUEST {

     

    if { [HTTP::host] ne "www.domain.com" } {

     

    HTTP::redirect "https://www.domain.com[HTTP::uri]"

     

    }

     

    }

     

     

    Users will still get a message about mis-matched certificates before the redirect can take effect (unless you have a wildcard certificate registered for *domain.com).