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 {
...
kunjan
Nimbostratus
Oct 31, 2014and what error is that .. syntax error?
when 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 "
}
}
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