murphs76_64953
Apr 28, 2014Nimbostratus
Mobile 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::uri]] starts_with "/groupon" } { HTTP::redirect "m.site.com/1231" } if { [string tolower [HTTP::uri]] starts_with "/shoprunner" } { HTTP::redirect "m.site.com/1232" } if { [string tolower [HTTP::uri]] starts_with "/hilton" } { HTTP::redirect "m.site.com/1233" } }
This is a small set. The full iRule would be hundreds of redirects in one irule for one VIP.
- Will the code work
- Should it be done (i know it shouldn't but so far have not given an argument that swayed the business).
Any help would be greatly appreciated.
Thanks in advance,
-Greg