Forum Discussion
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
}
}
- Kevin_StewartEmployeeIf I understand your request, something like this should work (very similar to what you already have).
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/test" } { pool A } else { pool B } }
- Geoff_34657NimbostratusIt appears to be an IE issue.
- Kevin_StewartEmployeePlease put a log statement at the beginning of your HTTP_REQUEST event and review/report the findings.
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