Difference between revisions of "Change URL/Host"
From Tech-Wiki
(Created page with "Category:F5 Networks '''Back to iRules''' when HTTP_REQUEST { set host [HTTP::host] set path [HTTP::path] if { not ([HTTP::host] starts_w...") |
|||
Line 3: | Line 3: | ||
when HTTP_REQUEST { | when HTTP_REQUEST { | ||
− | |||
− | |||
if { not ([HTTP::host] starts_with "www") } { | if { not ([HTTP::host] starts_with "www") } { | ||
HTTP::host www.[HTTP::host] | HTTP::host www.[HTTP::host] | ||
} | } | ||
} | } |
Revision as of 19:11, 16 May 2021
when HTTP_REQUEST { if { not ([HTTP::host] starts_with "www") } { HTTP::host www.[HTTP::host] } }