The following iRule isn’t redirecting properly - these are supposed to be going to 4 separate URIs.
I moved over to a switch statement because I was getting a similar behavior - it’s as if it is catching the /lv2010/es* first. I have tried removing the asterisks, but that did not work.
Can anyone help?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/lv2010/es/register*" {
HTTP::redirect "http://ourdomain.org/registration.aspx"
}
"/lv2010/es/hotel*" {
HTTP::redirect "http://ourdomain.org/hotel-and-travel.aspx"
}
"/lv2010/es/qualify*" {
HTTP::redirect "http://ourdomain.org/qualification.aspx"
}
"/lv2010/es*" {
HTTP::redirect "http://ourdomain.org/home.aspx"
}
"/lv2010*" {
HTTP::redirect "http://ourdomain.org/home.aspx"
}