URL redirection

Need to redirect the URL as below.

When a request is received as https://www.abc.com/ it has to be redirected to https://www.abc.com/test/Login.html

Could any one help by providing the iRule

Hi Ashok,

You could try the following

when HTTP_REQUEST { 
    if {([HTTP::host] eq "www.abc.com") and ([HTTP::uri] eq "/") } { 
           HTTP::redirect "https://www.abc.com/test/Login.html" 
       } 
 }

I hope this helps

Bhattman