Forum Discussion

  • Snl's avatar
    Snl
    Icon for Cirrostratus rankCirrostratus

    if you want to redirect the client to the requested host without the port, you could use below irule

     when HTTP_REQUEST { 
    
         Check if Host contains a colon 
        if {[HTTP::host] contains ":"}{ 
            Redirect client to requested host minus the port and preserve the original URI 
           HTTP::redirect "https://[getfield [HTTP::host] ":" 1][HTTP::uri]" 
        } 
     }