Forum Discussion
ngray_141868
Nimbostratus
Jan 22, 2014iRule 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: ...
ngray_141868
Nimbostratus
Jan 22, 2014Hi Nitass,
Thank you for the quick reply. I was able to make it work using another answer to another question you had posted.
Your answer, when HTTP_REQUEST { if { [HTTP::host] eq "host.123.com" and [HTTP::uri] eq "/" } { HTTP::uri "/abc" } } was very close to what I needed to achieve. To note what I am using (and it is working): when HTTP_REQUEST { if { [HTTP::uri] eq "/" } { HTTP::redirect "http://host.123.com/swbc" } }
Thanks againg for you help.
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