Forum Discussion
TMAdmin
Nimbostratus
Apr 29, 2015Rewrite URI while keeping the URI query
Hi, I am trying to rewrite the URI while keeping the URI query intact Ideas anyone? Below is the code I have attempted to use. Minor note: If the request is sent without any query parameters,...
Robert_Luechte2
Cirrus
Apr 29, 2015Since you only want to modify the path portion of the URI, could you do something like this:
when HTTP_REQUEST
if { ([HTTP::host] equals "some.domain.name") and ([HTTP::path] equals "/jsp/cactus/cactusGardens.jsp") } {
[HTTP::path] "/my/new/path.jsp"
}
}
I believe that should only modify the path portion of the 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