Forum Discussion
Gary_Bristol_19
Nimbostratus
Oct 08, 2015I am really bad at this,
I am attempting to incorporate some previous examples into a iRule that will do the following as I can't see to get a Data group File to work.
what i need to do is the following
I have attempted to ...
Michael_Jenkins
Cirrostratus
Oct 08, 2015Have you tried reordering the list? Something like this? Sounds like it's matching on
/it/* first since it's higher in the list, so any sub URIs won't match as expected...
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"webapps.ou.edu" {
switch -glob [string tolower [HTTP::uri]] {
"/alerts" {
HTTP::redirect "http://www.ou.edu/ouit/help/alerts"
}
"/elections*" {
HTTP::redirect "https://orgsync.com/122675/chapter"
}
"/hsp*" {
HTTP::redirect "http://www.ou.edu/hsp.html"
}
"/it/faculty*" {
HTTP::redirect "http://www.ou.edu/ouit"
}
"/it/staff*" {
HTTP::redirect "http://www.ou.edu/ouit"
}
"/it/students*" {
HTTP::redirect "http://www.ou.edu/ouit"
}
"/it/identity*" {
HTTP::redirect "http://www.ou.edu/content/ouit/security/top10/safeguard_your_personalinformation.html"
}
"/it/newstudents*" {
HTTP::redirect "http://www.ou.edu/ouit/new.html"
}
"/it*" {
HTTP::redirect "http://www.ou.edu/ouit"
}
}
}
}
}
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