Forum Discussion
URL redirect without changing host browser address.
I am trying to achieve proxy redirection where my client want the redirection of site hosted on F5 to another non-F5 hosted site. But the url in client browser should stick to abc.com.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "abc.com" } { HTTP::redirect "https://xyz.net[HTTP::uri]" } { replace Host "abc.com[HTTP::uri]" } }
4 Replies
- Faruk_AYDIN
Altostratus
If you use abc.com as a explicit proxy, you do not do this. If you use abc.com only as a VS you can do it.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "abc.com" } { HTTP::redirect "https://xyz.net[HTTP::uri]" } } - Samir_Jha_52506
Noctilucent
Please go through link
Only thing you need to apply stream profile to VIP. Let me know if you have any question
- Ed_Summers
Nimbostratus
In case this is useful: ProxyPass v10/v11 on CodeShare by Kirk Bauer
- Daniel_Varela
Employee
Why don't you try to forward the request by using node command?
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "abc.com" } { node your_ip your_port } }
This way the HTTP request is not modified but sent to your external VS. You might need to create the node before.
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