Forum Discussion
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'
- nitassEmployeecan u try this?
- Colin_Walker_12Historic F5 AccountKeep in mind that your iRule as it's written will redirect all requests to a single URI. Just making sure that's what you want. ;)
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