Forum Discussion
Brian_Kenworthy
Aug 30, 2012Nimbostratus
Redirect to New Page but Pass Query String Parameters
Hi All,
Need some advice on what an iRule would look like to do this....We are moving from legacy ASP listeners to .net listeners, but we don't want the client to change their endpoint ...
Brian_Kenworthy
Sep 06, 2012Nimbostratus
Thanks all, I tested out each of the suggestions and it appears to be working great. One thing I wanted to do was log the original URI and the re-written URI, but I can't seem to be able to use HTTP::URI with HTTP_RESPONSE. It's probably something very simple....
when HTTP_REQUEST {
log local0. "OLD URI is --> [HTTP::host][HTTP::uri]"
HTTP::uri [string map {"vendor" "listeners" ".asp" ".ashx"} [HTTP::uri]]
}
when HTTP_RESPONSE {
log local0. [HTTP::URI] ??
}
Thanks for the help all!!
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