Forum Discussion
Tony_105617
Nimbostratus
Apr 18, 2013need a rewrite or redirect rule for URI
I have only done a little iRule scripting so any thing would be helpful.
I have a customer that wants to have a iRule that will rewrite the uri portion of a request.
here's what the...
Kevin_Stewart
Employee
Apr 18, 2013Yes. The HTTP::uri command reads and writes, depending on context.
So HTTP::uri "/addeduri[HTTP::uri]" means to write a new URI with the "/addeduri" string and the existing URI, read from [HTTP::uri]. This would cover ANY URI that doesn't start with "/addeduri", so if the user requests "/", it will be translated to "/addeduri/".
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