Forum Discussion
NewTOF501_15047
Nimbostratus
Jul 07, 2014irule 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::red...
NewTOF501_15047
Nimbostratus
Jul 07, 2014i tried this
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.data.gov.bh" { HTTP::redirect "http://www.data.gov.bh/wps/portal/data"}
"www.fsupport.gov.bh" { HTTP::redirect "http://www.fsupport.gov.bh/wps/portal/fsupport"}
"www.biciactions.bh" { HTTP::redirect "http://www.biciactions.bh/wps/portal/BICI"}
}
but it is also not working
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