Forum Discussion
Joe_Pipitone
Nimbostratus
Jan 28, 2010Redirects /rewrites not being caught
I have an iRule written that is supposed to catch the following URL's and redirect them all to https://www.oursite.org
The irule only seems to want to catch the first one, and it is not redir...
hoolio
Cirrostratus
Jan 29, 2010Nice work. Debug logging could help you catch something like that. Also, if the action is the same for any switch condition, you can combine them into one case:
when HTTP_REQUEST {
switch [string tolower [HTTP::path]] {
"/login/default-login.aspx" -
"/forms/buy.aspx" -
"/forms/changeform.aspx" -
"/forms/registrationform.aspx" -
"/forms/changepassword.aspx" -
"/forms/renewform.aspx" -
HTTP::redirect "https://www.oursite.org[HTTP::uri]"
}
}
}
Aaron
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