Forum Discussion
Eddy_161863
Nimbostratus
Oct 23, 2015if a URL ends with trailing slash "/"?
Hi , I have an iRule in which I need to check if the URL ends with "/", Looks like it's working for some URL's but not for all . Any help would be really apprecited. I am adding only a part of iRule....
Brad_Parker
Cirrus
Oct 23, 2015Try just changing you conditional to include equals "/" as well.
if {$retried == 0 && ([HTTP::uri] ends_with "/" || [HTTP::uri] equals "/")} { pool $default_pool {pool $lsds_pool } }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