Forum Discussion
Nilendu_Haldar_
Nimbostratus
Sep 10, 2018iRule - Need to skip anything after a specific string in the URI
I already have below iRule, which works good.
when HTTP_REQUEST {
if { ![class match [string tolower [HTTP::uri]] contains exception_abc1_to_abc] } {
if {([HTTP::uri] starts_with "/wps/por...
Stanislas_Piro2
Cumulonimbus
Sep 10, 2018you can use this:
if { [set index [string first [HTTP::uri] /!ut]] ne -1 && [string length [HTTP::uri]] > $index } {
HTTP::redirect [string range [HTTP::uri] 0 $index]]
}
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
