Jason_19901
Jul 25, 2011Nimbostratus
Validate iRule
when HTTP_REQUEST {
Check if host is abc.com
if {[string tolower [HTTP::host]] eq "abc.com"}{
Rewrite the URI to /irj
HTTP::uri "/irj"
}
}
else
{
check if host is xyz.com
if {[string tolower [HTTP::host]] eq "xyz.com}{
rewrite the uri to /irq
HTTP::uri "/irq"
}
}
I have really never used more than one url. I need to append the URI. I want to know if the 'else' is correct or is it 'else if'