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 25, 2014when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/ping" } {
HTTP::path "/"
pool POOL2
} else {
pool POOL1
}
}
- Peter_125758Jun 26, 2014
Nimbostratus
Thank you very much. It actually forward to the pool2 when the initial input has a /ping path. However, the /ping path is still not removed permanently. So, how do you remove the path "/ping" permanently?
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