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...
youssef1
Cumulonimbus
Sep 10, 2018Hi,
you can use this (I tested it and it's working):
if { [HTTP::uri] contains "/!ui" } {
regexp {^(.*/!ui).*?} [HTTP::uri] -> newuri
HTTP::uri newuri
log local0. "AAA - $newuri"
}
Regards
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
