Forum Discussion
SteveBy5
Aug 03, 2022Nimbostratus
URI::path returns null without trailing slash (/)
Hi, I'm trying to workout some redirects based on the first level of the URI path. set rPath [string tolower [URI::path [HTTP::uri] 1 1]] when I hit the iRule with "https://something.com/path1/" ...
Aug 08, 2022
Hello SteveBy5,
You have a great explanation of how URI::path works.
https://clouddocs.f5.com/api/irules/URI__path.html
Anyway, in your case you can use something like this:
[HTTP::uri starts_with "/path1"]
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