Forum Discussion
Joe_Pipitone
Nimbostratus
Jun 02, 2010Unique redirect iRule help
We have an iRule that doesn't seem to be doing the job, and just ends up in a redirect loop. I'm pretty sure why, however I am not 100% sure how to get this working properly.
We have a website, lets...
Joe_Pipitone
Nimbostratus
Jun 02, 2010I figured this one out on my own, I had to use a default statement inside an if statement
if {[HTTP::uri] eq "/" } {
switch -glob [HTTP::uri] {
"/" { HTTP::redirect "http://anothersite.com/events" }
default { HTTP::redirect "http://events.oursite.com[HTTP::uri]" }
}
}
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