Forum Discussion
ras2018_335513
Nimbostratus
Dec 17, 2018URI Redirect Coveo Index Test
Looking for assistance with a uri redirect where certain elements of the URI are subject to change,
but the remaining items stay the same.
As an example:
https://api-itg-1.testdomain.com/ab...
dluzzi
Nimbostratus
Dec 17, 2018Hello,
 
You can probably use the string map within an irule. Not sure if the rough syntax I have below is correct. You can read more here: https://clouddocs.f5.com/api/irules/HTTP__path.html
 
"api-itg-1.testdomain.com" {
switch -glob [string tolower [HTTP::uri]] {
"/apitest/*" {
HTTP::path [string map {/abc-apitest-v1-itg /apitest} [HTTP::path]]
}
}
}
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
