Change URL/Host

From Tech-Wiki
Revision as of 14:19, 17 May 2021 by Fabricio.Lima (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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}
  } 
}