Neil_66348
Aug 15, 2013Nimbostratus
HTTP Cookie Redirect based upon cookie value and URL
Hi Guys,
Have an internal APP with needs language support now... Basically , redirect to a different URL based upon a language cookie set on the web server and the URL asked for .
The below is basically pretty wrong , and help really grateful , had a good search through the forums but can't find that much which is in the direction I need.
when HTTP_REQUEST {
Try to select a pool based on the http cookie containing pool information
if { [HTTP::cookie exists "LANG"] and [HTTP::cookie value "LANG"] contains "EN"} {
xxxx(and website is www.website.com or website.com (the root "/") then redirect to --->www.website.com/page.apsx?lang=en)
}
elseif { [HTTP::cookie exists "LANG"] and [HTTP::cookie value "LANG"] contains "ES"} {
xxxx(and website is www.website.com or website.com (the root "/") then redirect to --->www.website.com/page.apsx?lang=ES)
}
elseif { [HTTP::cookie exists "LANG"] and [HTTP::cookie value "LANG"] contains "DE"} {
xxxx(and website is www.website.com or website.com (the root "/") then redirect to --->www.website.com/page.apsx?lang=DE)
}
else {
(no nothing)
}
}
Many Thanks Neil