Forum Discussion
nathe
Aug 15, 2013Cirrocumulus
Try this Neil, no expert at iRules but enjoy giving them a go and happy to help if I can.
when HTTP_REQUEST {
if { [HTTP::cookie exists "LANG"] } {
switch [HTTP::host] {
"www.website.com" -
"website.com" {
switch [HTTP::cookie value "LANG"] {
EN { HTTP::redirect "www.website.com/page.apsx?lang=en" }
ES { HTTP::redirect "www.website.com/page.apsx?lang=ES" }
DE { HTTP::redirect "www.website.com/page.apsx?lang=DE" }
}
}
}
}
}