Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

ScottTS's avatar
ScottTS
Icon for Nimbostratus rankNimbostratus
Nov 09, 2018

removing :443 port from URL

irule to remove :port from host of URL

 

1 Reply

  • 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]" 
        } 
     }