Forum Discussion
Jeff_Morrison_4
Nimbostratus
Nov 01, 2007HTTP redirect and keep remaining uri path
I am trying to do a redirection from one external address to another based on certian part of the URL, but need the remaining address to be left in place after the redirection. For example:
...
hoolio
Cirrostratus
Nov 01, 2007You can use string map (Click here) to replace /customer/ with /DIFFERENT-CUSTOMER/.
I think it should work if you replace the current redirect with this:
redirect to https://[HTTP::host]/[string map {/customer/ /DIFFERENT-CUSTOMER/} [HTTP::uri]]
log local0. "redirecting to: https://[HTTP::host]/[string map {/customer/ /DIFFERENT-CUSTOMER/} [HTTP::uri]]"
Thanks,
Aaron
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