Forum Discussion
URI Redirect
Hi guys
New to F5
I need to create a rule that will proxy request coming in from https://test-www.test.it/affiliati.jsp?ANY-QUERY-STRING to https://test-mezzo.test.it/promotions/affiliate?ANY-QUERY-STRING
This rule should pass all query strings through the reverse proxy and expect a 302 redirect as a response.
Any assistance would be apprieciated.
Thkx
- youssef1
Cumulonimbus
Hello,
You want to change / rewrite Host header in request and response.
Try this:
https://devcentral.f5.com/questions/irule-to-change-host-headers
Regards
- rade5_74503
Nimbostratus
Thkx Guys
This is the rule that worked
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/affiliati.jsp?" } { HTTP::redirect "https://test-mezzo.test.it/promotions/affiliate?[HTTP::query]" } }
Recent Discussions
Related Content
* 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