Forum Discussion
chungyu_16122
Altostratus
Oct 16, 2015How do I combine multiple irules doing redirects to a single irule?
Hi all
Has someone worked on a similar set i=of irules?
I currently have 2 separate irules to redirect users to a specific page; however, I would like to create a single rule that combines ...
Michael_Jenkins
Cirrostratus
Oct 16, 2015Try something like this.
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.infogood.com" {
switch [string tolower [HTTP::uri]] {
"/cu/en/legacylogin.jsp" -
"/cu/en/legacylogin.jsp/" {
HTTP::redirect "http://www.school.com/it/"
}
}
}
"education-account-identification.com" {
HTTP::redirect "http://www.school.com/it/"
}
"www.schoolpermit.com" {
HTTP::redirect "http://www.school.com/it/"
}
}
}
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