Forum Discussion

mlmarcelo1_3620's avatar
mlmarcelo1_3620
Icon for Altostratus rankAltostratus
May 21, 2018

iRule HTTPS to HTTPS redirection

Dear All,

 

I have a virtual server publishing a https://www.xpto.com website.

 

I need to redirect via irule the requests from the old site https://www.xpto.com to the new https://www.abc.com. The http redirection is working fine, but the https show a certificate error

 

Both have ssl profile.

 

Thanks, Marcelo

 

  • I gave up trying the redirect on the same VS.

     

    I created a new text with the profile of the old certificate doing the redirection.

     

  • when HTTP_REQUEST {
    if { [string tolower [HTTP::host]] ends_with ".abc.com" } {
        HTTP::redirect "https://www.xpto.com[HTTP::uri]"
    }
    

    }

  • If I understand correctly it seems your uses the wrong certificate. Can you login to your BIG-IP with ssh and show the output of the following commands?

     curl -kv https://www.abc.com
     curl -kv https://www.xpto.com
    
  • I gave up trying the redirect on the same VS.

     

    I created a new text with the profile of the old certificate doing the redirection.