Geoff_34657
Apr 24, 2013Nimbostratus
HTTP:URI no ending slash
So I am using the following iRule and it works properly but, it doesn't work unless there is an ending / or it is a complete URL with filename. I have been searching through the examples and there is only one that works but, it uses a datagroup and I am just wondering if there is a simpler way to make this happen.
domain.com/test/ and domain.com/test/test.aspx work properly but, domain.com/test does not work properly. Is there away to make this work properly?
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/Testing"}{
log local0. "1. Client [IP::client_addr]: client requested [HTTP::host][HTTP::uri]"
pool A
}
else {
log local0. "2. Client [IP::client_addr]: client requested [HTTP::host][HTTP::uri]"
pool B
}
}