Forum Discussion
Ashu_2116
Nimbostratus
Sep 07, 2018Help with i-rule
Hi Can someone please help me with a i-rule requirement?
Requirement: The default url https://www.abc.com goes to it defualt server pool. but If the uri is /helloworld then it goes to a different ser...
Stanislas_Piro2
Cumulonimbus
Sep 07, 2018use this code:
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/helloworld"} {
pool pool_www.abc.com_HelloWorld
} else{
pool pool_www.abc.com_default
}
}
when you use $1, it means you convert the uri to lowercase... if you compare to /HelloWorld, it will always fail because it contains uppercase.
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