Forum Discussion
Howard_Poz_1055
Nimbostratus
May 19, 2006"String based" Redirect Question -
Hi Folks (i'm still new to iRules). Looking for verification to see if I'm on the right track with this iRule below (think I'm close).
I want uri's containing the text "/ABCHome.aspx?_act=S...
Martin_Machacek
May 22, 2006Historic F5 Account
Howard,
you've posted to a wrong forum (iRules -> v4.x instead of v9.x).
Your rule is almost correct. You are just missing closing right brace for the "when .." clause. I'm assuming that those HTML escapes (%5b, %5d) in the HTTP::redirect command are actually left and righ bracket in your configuration and were just munged while posting to the forum. The correct syntax is:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/ABCHome.aspx?_act=ShowMap" } {
pool HTTP_pool
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
If you need further help, please post to the iRules -> v9.x forum.
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