Forum Discussion
Mohamed_Lrhazi
Jul 25, 2014Altocumulus
OK, so you simply want something like:
if {not ([string tolower [HTTP::host]] equals "www.example.com")} {
reject
}
or see this example that redirects based on strings found inside the Host header:
https://devcentral.f5.com/wiki/iRules.Universal_Host_Redirect.ashx