Forum Discussion

Alan_Karelitz's avatar
Alan_Karelitz
Icon for Nimbostratus rankNimbostratus
Oct 22, 2007

9.X to 4.5.14 HTTP To HTTPS Rule Conversion

Can someone convert this irule from 9.x to 4.5.14?

 

 

when HTTP_REQUEST {

 

HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]

 

}

 

 

 

 

Thank in advance.

 

 

Alan

1 Reply

  • Hi,

    This should be equivalent but I haven't tested it. Can you give it a shot?

    
    redirect to "https://" + getfield(http_host, ':', 1) + http_uri

    Aaron