Forum Discussion
Bruce0279
Nimbostratus
Apr 15, 2021Base Path URL Redirect to Specific Pool
Hi there, I'm new to this forum and looking for some help, looking to create irule that will allow base path URL to redirect traffic to a certain pool. example incoming url https:...
spalande
Nacreous
Apr 15, 2021Something sort of below. Modify the pool names accordingly
when HTTP_REQUEST {
set baseuri [lindex [split [string tolower [HTTP::uri]] "/"] 1]
if { [HTTP::uri] eq "/$baseuri" } {
pool pool_1
} else {
pool pool_2
}
}- Bruce0279Apr 15, 2021
Nimbostratus
thank you Sanjay for your support!
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