Forum Discussion
snjk_65602
Nimbostratus
Sep 25, 2012Need help to convert iRule from ver 4 to ver 11.
I have the follwoing iRule in ver 4-
rule LMS_dev{
if (http_host matches_regex "d2lstg.smu.edu.sg")
if (http_host matches_regex "d2lstg.smu.edu.sg") {
redirect to ""
}
...
nathe
Cirrocumulus
Sep 25, 2012snjk
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
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