Forum Discussion
murphs76_64953
Nimbostratus
Apr 28, 2014Mobile redirect iRule :uri "/groupon" to m.site.com/19550
Hello Network Engineers asked to be overnight developers :),
I am asked to write a redirect iRule.
Here is what I came up with -->
when HTTP_REQUEST {
if { [string tolower [HTTP::u...
murphs76_64953
Nimbostratus
Apr 28, 2014Slight modification to my posted code. subsequent if statements are elseif
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/groupon" } { HTTP::redirect "m.site.com/1231" } elseif { [string tolower [HTTP::uri]] starts_with "/shoprunner" } { HTTP::redirect "m.site.com/1232" } esleif { [string tolower [HTTP::uri]] starts_with "/hilton" } { HTTP::redirect "m.site.com/1233" } }
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