Forum Discussion
Thomas_McLean_1
Nimbostratus
Jan 14, 2016missing close-brace issue - iRule newbie
Hi,
I'm developing an iRule that will stop redirect users if they hit a specific URI, I'm needing to put this in the top of my current iRule so that it captures the request at the top to capture t...
Thomas_McLean_1
Nimbostratus
Jan 14, 2016I have resolved this. I had two issues a missing : within a HTTP::uri and also didn't have the HTTP::respond 301 Location with the redirect URL.
Thanks for looking everyone. The solution is below:
if { ([HTTP::uri] starts_with "/URI1") || ([HTTP::uri] starts_with "/URI2") || ([HTTP::uri] starts_with "/URI3") || ([HTTP:uri] starts_with "/URI4") || ([HTTP::uri] starts_with "/URI5") || ([HTTP::uri] starts_with "/URI6")}
HTTP::respond 301 Location "http://google.com/"
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