Forum Discussion
Chris_Miller
Aug 17, 2010Altostratus
Posted By iRuleYou on 08/17/2010 10:10 AM
but code looks fine for 9.4.8, correct?
when HTTP_REQUEST {
if { [matchclass [stringtolower [HTTP::host]] eq $::myclass] } {
HTTP::respond 301 Location "https://www.mydomain/secure"
} else { pool "mysecurepooll_443" }
}
I think that's the only change necessary to make it work for 9.x...see if it compiles. You shouldn't have to set the host variable or see whether it exists...checking whether it matches your datagroup should accomplish that.