Forum Discussion
Vijay_E
Dec 14, 2016Cirrus
You need this logic inserted into your existing iRule:
if { [HTTP::host] starts_with "www." } {
HTTP::host [getfield [HTTP::host] "www." 2]
}
or you can try this if the above doesn't give the right result:
if { [HTTP::host] starts_with "www." } {
HTTP::host [string range [HTTP::host] 4 end]
}