Forum Discussion
Sheetal_43349
Nimbostratus
Jul 02, 2018URI 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
Cumulonimbus
Jul 02, 2018Hi,
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