F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

stuhedrich_1120's avatar
stuhedrich_1120
Icon for Nimbostratus rankNimbostratus
Apr 07, 2015

Mobile Device irule redirect behind Akamai results in Forbidden Error

Could use some help to determine if the iRule is written in a proper manner.

 

If the /URI is blank or just /, it will result in a Forbidden error by Akamai. If it has a /URI of any value or bypassing Akamai, then it will function correctly. I do have a Splash page iRule for all devices to redirect to the home page URI if the URI request is just "/" but that doesn't seem to be triggering even though its higher on the iRule list, but I have not set priority yet.

 

iRule is applied to www.foo.com virtual server and need smartphones (data group = Mobile_Redirected_Devices) to redirect to mobile:

 

when HTTP_REQUEST { set qvalue [URI::query [HTTP::uri] refundInfo] if { [class match -- [string tolower [HTTP::header "User-Agent"]] contains Mobile_Redirected_Devices] && [HTTP::path] eq "/cancel/orderCancellation" and $qvalue ne "" } { HTTP::redirect "https://mobile.foo.com/cancelOrderVerify.action?token=$qvalue" } elseif { [class match -- [string tolower [HTTP::header "User-Agent"]] contains Mobile_Redirected_Devices] } { HTTP::redirect https://mobile.foo.com/panera } }

 

1 Reply