Forum Discussion
Kevin_Stewart
Aug 01, 2013Employee
I think you need to perform the active_members conditional within the scope of the requested language. Something like this perhaps:
when HTTP_REQUEST {
switch [string tolower [HTTP::header Accept-Language]] {
"en" {
if { [active_members english] == 0 } {
HTTP::redirect "http://google.com"
} else {
pool english
}
}
"fr" {
if { [active_members french] == 0 } {
HTTP::redirect "http://yahoo.com"
} else {
pool french
}
}
default {
do something else...
}
}
}