Sams_88783
Aug 23, 2010Nimbostratus
Please help in converting v4.x irule to 9.x
Hello,
I tried to convert the below 4.x irule to 9.x but i am getting error.Please help me in converting the same.
if (http_host == "mydomian.com" and http_header("WL-Proxy-SSL") != "true") {
redirect to "https://mydomain.com/%u"
}
else if (http_host == "mydomian.com" and http_uri ends_with "/") {
redirect to "https://mydomian.com/index.html"
}
else if (http_host == "www.mydomianone.com" and http_uri ends_with "/") {
redirect to "https://www.mydomianone.com/index.html"
}
else if (http_host == "mydomianone.com" and http_uri ends_with "/") {
redirect to "https://mydomianone.com/index.html"
}
else if (http_host == "mydomianone.com" and http_header("WL-Proxy-SSL") != "true") {
redirect to "https://www.mydomianone.com/%u"
}
else if (http_host == "www.mydomianone.com" and http_header("WL-Proxy-SSL") != "true") {
redirect to "https://www.mydomianone.com/%u"
}
else if (http_host == "192.160.1.1") {
discard
}
else {
use pool MYDOMIAN
}