Change URL/Host

From Tech-Wiki
Jump to: navigation, search

Back to iRules

when HTTP_REQUEST {
 set host [HTTP::host]
 if { not ([HTTP::host] starts_with "www") } { 
   HTTP::redirect https://www.${host}
  } 
}