Forum Discussion

Muhammad_Irfan1's avatar
Dec 09, 2014
Solved

Rewrite https://10.50.**.5:4443 to https://10.50.**.5:4443/ecommunications_enu/start.swe.

I am load balancing for 2 web servers.

 

Home page of application is **.5:4443/ecommunications_enu/start.swe

 

Everything is working fine but if client puts

 

**.5:4443 only then he lands on web server home page which I do not want.

 

How can I rewrite if client puts **.5:4443 either it does not show any think or it rewrite it to full application home page url. Either will be fine..

 

Please help

 

  • you could do a simple redirect if a user tries to hit "/"

    when HTTP_REQUEST {
    if {[HTTP::uri] equals "/"}{
      HTTP::redirect 
    }
    }
    

4 Replies

  • you could do a simple redirect if a user tries to hit "/"

    when HTTP_REQUEST {
    if {[HTTP::uri] equals "/"}{
      HTTP::redirect 
    }
    }
    
  • shaggy's avatar
    shaggy
    Icon for Nimbostratus rankNimbostratus

    you could do a simple redirect if a user tries to hit "/"

    when HTTP_REQUEST {
    if {[HTTP::uri] equals "/"}{
      HTTP::redirect 
    }
    }