I 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 use an external data group file and an internal Data group file and the irule never picks up the second variable. so I am attempting to do this short list with a all inclusive iRule.
lms.ou.edu redirect to survey.ou.edu redirect to tutoring.ou.edu redirect to http://www.ou.edu/graduatesooner/resources/tutoring.html,
webapps.ou.edu/alerts redirect to http://www.ou.edu/ouit/help/alerts, webapps.ou.edu/elections redirect to https://orgsync.com/122675/chapter, webapps.ou.edu/hsp redirect to http://www.ou.edu/hsp.html,
webapps.ou.edu/it redirect to http://www.ou.edu/ouit, webapps.ou.edu/it/faculty redirect to http://www.ou.edu/ouit, webapps.ou.edu/it/staff redirect to http://www.ou.edu/ouit, webapps.ou.edu/it/students redirect to http://www.ou.edu/ouit,
webapps.ou.edu/it/identity redirect to http://www.ou.edu/content/ouit/security/top10/safeguard_your_personalinformation.html, webapps.ou.edu/it/newstudents redirect to http://www.ou.edu/ouit/new.html,
webapps.ou.edu/security redirect http://www.ou.edu/ouit/security, webapps.ou.edu/studentservices redirect to http://www.ou.edu/ouit/aud/students, webapps.ou.edu/students redirect http://www.ou.edu/ouit/aud/students, webapps.ou.edu/support redirect to http://www.ou.edu/content/ouit/help/personal.html,
webapps.ou.edu/virtualtour redirect www.ou.edu/map,
webapps.ou.edu/it/phonerates := pool,nor-it-webapps_pool, webapps.ou.edu := pool,nor-it-webapps_pool, webapps.ou.edu/flex2gateway := pool,nor-it-webapps_pool, webapps.ou.edu/supporttool := pool,nor-it-webapps_pool,
what I have attempted to use for the first part is ; but it always seems to go to www.ou.edu/ouit, once it gets to anything below /it
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*" {
HTTP::redirect "http://www.ou.edu/ouit"
}
"/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"
}
}
}
}
}