Forum Discussion
silver
Nimbostratus
Sep 25, 2012URI Rewrite
HI All,
I have a specific requirement to rewrite the URI when the user requests the URL and the change has to be made interanlly without knowing to the external user.
Original URL : ...
Michael_Yates
Nimbostratus
Sep 26, 2012Hi Silver,
You have an extra "]" in your iRule.
Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/testcustomer/testcontext/html" } {
HTTP::uri "/customer/context/html"
}
}
If you are not using it I would suggest using the iRule Editor. It can help you with IntelliSense for iRule TCL Commands and syntax checking. You can find the download link on the home page of DevCentral.
Hope this helps.
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