Forum Discussion
Gill_32697
Nimbostratus
Feb 13, 2014irule usi else statement
so I need help with an I rule saying. If the url is https://imortgages.com or https://imortgages.mysite.local then ok just continue to default webpage. Else if any agent names /uri exits after url li...
Kevin_Stewart
Employee
Feb 13, 2014Perhaps something like this?
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
return
} else {
if { [class match [string tolower [HTTP::uri]] starts_with Mortgage_iRuler] } {
HTTP::redirect [class match -value [string tolower [HTTP::uri]] starts_with Mortgage_iRuler]
} else {
node 10.20.30.40 80
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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