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) URL https://www.xyz.com/ping so when someone enter 2, it would forward to POOL2 and remove the "/ping path" to just only https://www.xyz.com
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/ping" } { HTTP::path [string range [HTTP::path] 0 3] pool POOL2 } else { pool POOL1 } }