Forum Discussion

Venkata_Sandeep's avatar
Venkata_Sandeep
Icon for Nimbostratus rankNimbostratus
Jun 24, 2020

How to hide the redirected URI path from users.

In my current setup i have a below irule applied to virtualserver.

 

when HTTP_REQUEST {

log local0. "host is: [HTTP::host], port is: [TCP::local_port]"

   if { [HTTP::host] equals "abc.example.com" and [TCP::local_port] == 443 } {

     HTTP::redirect "https://abc.example.com/abap/index.html"

 

   }

}

 

As I'm using HTTP::redirect users are able to see the entire path(/abap/index.html) in the browser.

we just need to hide the redirected path(/abap/index.html) from the user. 

can someone help me in writing it.

1 Reply

  • Hello Venkata.

    Try this:

    when HTTP_REQUEST {
    	log local0. "host is: [HTTP::host], port is: [TCP::local_port]"
    	if { [HTTP::host] equals "abc.example.com" and [TCP::local_port] == 443 } {
    		HTTP::uri abap/index.html
    	}
    }

    Regards,

    Dario.