Forum Discussion
Michael_-_Harr1
Nimbostratus
Feb 20, 2014Need some assistance with IRULE
Need some assistance with IRULE. If my pool mobileqa goes down need to seend a redirect for browser traffic to maintenance page. However if the traffic is coming from a mobile device the URL is diffe...
nitass
Employee
Feb 23, 2014e.g.
when HTTP_REQUEST {
if { [active_members Mobile-QA] < 1 } {
if { [HTTP::URI] starts_with "/www/" } {
HTTP::redirect "https://edepositqa.test.com/mobile/index.html"
} elseif { [HTTP::URI] starts_with "/splash/"} {
HTTP::redirect "https://edepositqa.test.com/mobile/index.html"
} else {
HTTP::respond 404
}
}
}
- Michael_-_Harr1Feb 24, 2014
Nimbostratus
Thank you. when I tried that IRULE received error undefined procedure error. 01070151:3: Rule [/Common/test] error: line 3: [undefined procedure: HTTP::URI] [HTTP::URI]
Help 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