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...
Richard_The_203
Nimbostratus
Jun 26, 2015Thank you for the verification!
Apparently, it was my server from the default_pool that was returning 302 like you guys said. Specifying the pool in the iRule block fixed the issue.
"/api/user.getInfo.*"
{
scan [HTTP::uri] {/api/user.getInfo.%[^.]+} cap1
HTTP::uri /api/user/getInfo.$cap1
pool my_api_pool
}
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