Forum Discussion
djkromarek
Nimbostratus
Jun 24, 2013removing part of uri in redirect
We are moving servers and our paths from site to application are changing. For example, I have a current path of testsite.com/applications/testapp/lowerfolder/lowerfolder/test.aspx?param1=1¶m2=2 ...
Kevin_Stewart
Employee
Jun 24, 2013Is "/application" a literal and consistent URI value, or just a representation of multiple possible values? If the former, then a simple string map should suffice:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/application" } {
HTTP::uri [string map {"/application/" "/"} [HTTP::uri]]
}
}
This will transparently change all incoming requests. If you need something more robust, perhaps changing outgoing URIs and links, then I'd suggest either looking at the ProxyPass iRule or the 11.4's new rewrite profile.
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