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
Oct 01, 2012Hi Silver,
Try this:
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] contains "/testcustomer" ) or ( [string tolower [HTTP::uri]] contains "/testcontext" ) } {
HTTP::uri [string map {"/testcustomer" "/customer" "/testcontext" "/context"} [HTTP::uri]]
}
}
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