NewTOF501_15047
Jul 07, 2014Nimbostratus
irule to check domain and redirect is not working
when HTTP_REQUEST { if { [HTTP::host] equals "www.data.gov.bh" } { HTTP::uri [string map -nocase {"/" "/wps/portal/data/"} [HTTP::uri]] } elseif { [HTTP::host] equals"www.biciactions.bh" } {HTTP::redirect "http://www.biciactions.bh/wps/portal/BICI" } elseif { [HTTP::host] equals "www.fsupport.gov.bh" } { HTTP::uri "/wps/portal/fsupport/"}
}
please advice why above is not working