F5 iRules Data Plane Programmability > 2. Cooking with iRules - HTTP > 2.1.1. Cooking with iRules Labs > 2.1.1.6. iRules Summary Source | Edit on PDF Version notice: 2.1.1.6.1.3. Lab 3 - Complete iRule¶ 2.1.1.6.1.3.1. Completed iRule¶ # HTTP_to_HTTPS_iRule when HTTP_REQUEST { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } # Factory F5 https redirect iRule when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] } Previous Next