Forum Discussion

DushyantSingh_1's avatar
DushyantSingh_1
Icon for Nimbostratus rankNimbostratus
Mar 10, 2016

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

  • 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]" 
        } 
    }
    
  • Please go through link

     

    Only thing you need to apply stream profile to VIP. Let me know if you have any question

     

  • 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.