Forum Discussion
Sheetal_43349
Jul 02, 2018Nimbostratus
URI Trimming
Hello,
I am making an irule where if the irule contains certain character in this case lets say AA, it should remove AA and modify the uri as it is .so, lets say if the url is https://abc.com/AA/xy...
youssef1
Jul 02, 2018Cumulonimbus
Hi,
you can use string range:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri starts_with "/BB" } {
set uri [HTTP::uri]
HTTP::uri [string range $uri 3 end]
}
}
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