Forum Discussion
anonymous_02_15
Nimbostratus
May 31, 2014URL re-Write
Hi ,
I am trying to write an irule which would rewrite the uri as below:
original uri https://www.ABC.com/BBB/CCC/DDDD/TK?grant_type=client_credentials --> the part after TK "could be an...
nathe
Cirrocumulus
May 31, 2014How about something like this?
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri starts_with "/BBB" } {
HTTP::uri [string range $uri 4 end]
}
}
See info on String here string command
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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