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

Forum Discussion

Matt_Sitati_644's avatar
Matt_Sitati_644
Icon for Nimbostratus rankNimbostratus
Dec 05, 2008

simple iRule

Very new to iRules.

 

 

How would i redirect http://domain.com to http://www.domain.com

1 Reply

  • Try this:

     
     when HTTP_REQUEST { 
       if { [HTTP::host] equals [domain [HTTP::host] 2] } { 
         HTTP::redirect www.[HTTP::host] 
       } 
     }