ngray_141868
Jan 22, 2014Nimbostratus
iRule for redirect from URL to URI
I'm extremely new to iRules (2nd day) and am asking for help. I am having difficulty getting an iRule to take a url and redirect (or append) that same url with a "/abc"
Here is my current rule:
when HTTP_REQUEST { if {([string tolower [HTTP::host]] equals "http://host.123.com")}{ HTTP::header replace Host "http://host.123.com/abc" } }
Pretty straightforward, right? I thought so, but what happens is when I go to "http://host.123.com" and want it to send me to "http://host.123.com/abc," it does nothing and simply keeps me at "http://host.123.com"
Any direction here is greatly appreciated. Thank you for your time