Forum Discussion
Rosieodonell_16
Oct 21, 2015Cirrus
So i tried this code:
when HTTP_REQUEST {
if { (([string tolower [HTTP::header "User-Agent"]] contains "iphone") && ([string tolower [HTTP::uri]] equals "/"))} {
log local0. "Redirecting by iphone detection"
HTTP::respond 302 location "https://www.company.com/mobilepage.aspx"
} elseif { [string tolower [HTTP::uri]] equals "/" } {
set sso_config /Common/product_tablet_sso
WEBSSO:select $sso_config
unset sso_config
log local0. "Redirecting without iphone detection"
HTTP::respond 302 location "https://www.company.com/tabletpage.aspx"
}
}
I don't get the error anymore but the sso doesn't work either. Still looking for assistance!