Forum Discussion
C_D_18583
Nimbostratus
Nov 03, 2005String Manipulation
I have the following piece of code in my iRule
elseif { $uri starts_with "/nexus/" } {
pool pool1 }
elseif { $uri starts_with "/earth/" } {
pool poo...
unRuleY_95363
Nov 03, 2005Historic F5 Account
A more generic approach may be to simply check the basename for a period and only add the slash if one was not found and it doesn't end with one:
...
if { not ([URI::basename $uri] contains ".") and not ($uri ends_with "/") } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]/"
} ...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
