snjk_65602
Sep 25, 2012Nimbostratus
Need 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 ""
}
else if (http_host matches_regex "xn--yfro4i6sbzxdg8th3unfm.edu.sg") {
redirect to "http://www.smu.edu.sg/%u"
}
The same has been convered to ver 11 as below but not working-
when HTTP_REQUEST {
if {[HTTP::host] matches_regex "d2lstg.smu.edu.sg"} {
HTTP::redirect "]"
}
elseif {[HTTP::host] matches_regex "xn--yfro4i6sbzxdg8th3unfm.edu.sg"} {
HTTP::redirect "http://www.smu.edu.sg/%u"
}
Pl help to resolve this. Thanks.