Forum Discussion
haridas_175080
Nimbostratus
Oct 31, 2014trying if else if. not working.. please help me
when HTTP_REQUEST
{
if {
[string tolower [HTTP::host]] equals "abc.com " }
{
HTTP::redirect "https://abc.com "
}
else if {
...
Vijay_E
Cirrus
Nov 03, 2014when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "abc.com " }{
HTTP::redirect "https://abc.com"
} elseif { [string tolower [HTTP::host]] equals "123.com "}{
HTTP::redirect "https://123.com"
} else {
HTTP::redirect "https://www.xyz.com"
}
}
The above rule posted by kunjan seems to be accepted by F5 in 11.x code version.
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