Forum Discussion
Richard_The_203
Nimbostratus
Jun 25, 2015URI Rewrite without Redirection
Hi,
I have an NGINX rule that needs to be translated to the equivalent iRules:
rewrite /api/user.getInfo.(.*) /api/user/getInfo.$1 last;
And this is the iRules I came up with:
"/api/use...
Stanislas_Piro2
Cumulonimbus
Jun 26, 2015The following irule may answer your need:
when HTTP_REQUEST
{
HTTP::uri [string map {"/api/user.getInfo." "/api/user/getInfo."} [HTTP::uri]]
}
Your irule did not generate 302 respond but if your request is :
http://www.company.com/api/user/getInfo.test
and getInfo.test is a directory on the web site, the web site will respond with a 302 to :
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