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...
Mui_64918
Cirrus
Feb 20, 2014if { [HTTP::URI] starts_with "/www/" } { HTTP::redirect https://edepositqa.test.com/mobile/index.html return } elseif { [HTTP::URI] starts_with "/splash/"} { HTTP::redirect https://edepositqa.test.com/mobile/index.html return } else { HTTP::respond 404 Location [HTTP::header Location] return }
This should do the trick
- Cory_50405Feb 20, 2014
Noctilucent
Your redirect should probably use code 302. 404 means not found, and isn't necessarily appropriate in this case.
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