Forum Discussion
nathe
Sep 25, 2012Cirrocumulus
snjk
I know regex queries aren't recommended due to cpu resources. thought I'd try and rewrite without. Hope this works. If not you may want to repost in the iRules v4 forum to get some iRuling experts to take a look in case they miss it here.
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"*d2lstg.smu.edu.sg*" {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
"*xn--yfro4i6sbzxdg8th3unfm.edu.sg*" {
HTTP::redirect "http://www.smu.edu.sg[HTTP::uri]"
}
}
}
Rgds
N