Forum Discussion
stuhedrich_1120
Nimbostratus
Apr 07, 2015Mobile 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 bypa...
cjunior
Nacreous
Apr 07, 2015Hi,
How is your data group item? Is stored in lower case? I do not know if I understand, but, following the reasoning, I would do so:Data group:
ltm data-group internal Mobile_Redirected_Devices { records { mozilla { data mozilla } } type string }iRule:
when HTTP_REQUEST {
if { [class match -- [string tolower [HTTP::header "User-Agent"]] contains Mobile_Redirected_Devices] } {
if { [HTTP::path] eq "/cancel/orderCancellation" and [URI::query [HTTP::uri] refundInfo] ne "" } {
HTTP::redirect "https://mobile.foo.com/cancelOrderVerify.action?token=[URI::query [HTTP::uri] refundInfo]"
} else {
HTTP::redirect "https://mobile.foo.com/panera"
}
}
}
Test 1:
Request: https://www.foo.com Response: https://mobile.foo.com/paneraTest 2:
Request: https://www.foo.com/somepath?somequery Response: https://mobile.foo.com/panera (The configuration rule out the URI, okay?)Test 3:
Request: https://www.foo.com/cancel/orderCancellation?refundInfo=1 Response: https://mobile.foo.com/cancelOrderVerify.action?token=1Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects