Forum Discussion
Peter_125758
Nimbostratus
Jun 25, 2014Forward to specific pool and remove URL's path
I am really stuck and can't figure what's wrong and need help. BTW, I am a newbie.
Rewrite to URL and strip part of the URI
Example
1)
URL https://www.xyz.com/index1.html
default POOL1
2)
...
Kevin_Davies_40
Nacreous
Jun 28, 2014Ahh so /ping is not a one off page. You want to browse a site from that pool, ok then we need to adjust your iRule.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/ping" } {
HTTP::path "/[string range 6 end]"
pool POOL2
} else {
pool POOL1
}
}
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