Forum Discussion
Chris_Minnich_1
Nimbostratus
Mar 27, 2007URL based redirect...
Hello...
I have 3 instances where I need certain URL's to be directed to a specific pool (the same pool), http://websitename/calendar, http://websitename/cgi-bin and http://websitename/smd/studen...
Chris_Minnich_1
Nimbostratus
Mar 27, 2007I think I see why this is not working with 3 separate rules, so I took a crack at combining the 3....I know this is not the most efficient way, but hopefully I am on the right track. I am not a programmer and new to iRules, so please be gentle!
when HTTP_REQUEST {
if { string tolower [HTTP::uri] starts_with "/calendar" } {
pool URMCPublicExclusion_HTTP_Pool
} elseif { string tolower [HTTP::uri] starts_with "/smd/student/2008" } {
pool URMCPublicExclusion_HTTP_Pool
} elseif { string tolower [HTTP::uri] starts_with "/cgi-bin" } {
pool URMCPublicExclusion_HTTP_Pool
}
else {
pool URMCPublic_http_Pool
}
}
Thanks
Chris
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
