Forum Discussion
Hiro_Castro_341
Nimbostratus
Nov 23, 2017Remove /api from uri and forward remaining uri
Hi F5 gurus,
I have a real quick question, I am looking for a possible syntax to strip out the /api from all the URIs that hit my VIP and send the remaining URL without changes. Is that possible? I ...
Only1masterbla1
Cirrus
Nov 23, 2017Certainly it is possible to remap URI sent to backend server. Some example from https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx.
Code
Make uri path start with /prefix if it doesn't already
when HTTP_REQUEST {
if { not ([HTTP::uri] starts_with "/prefix") } {
HTTP::uri /prefix[HTTP::uri]
}
}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
