Forum Discussion
Darren_21048
Nimbostratus
Jul 10, 2009URI Pool Redirect Question
Hi everyone,
Complete newbie here. I want to create an iRule that redirects to another pool based on the URI. So if I get a request for www.domain.com/xyz/, the request goes to the pool configu...
Darren_21048
Nimbostratus
Jul 29, 2009That works fine though I've modified it slightly as I wasn't dealing with case.
when CLIENT_ACCEPTED {
Save the default pool name
set default_pool [LB::server]
}
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]} starts_with "/abc" } {
pool abc_pool
} else {
pool $default_pool
}
}
I'm looking into this now but I have some URL's with /abcd and /abcd.aspx for example that I do not want to redirect, I only want to redirect /abc or /abc/. If someone has a quick answer, please feel free to post. Thanks.
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
