Redirect uri

I need to redirect http://192.168.10.5/ to http://192.168.10.5/psm/csr/dafult.asp with Irule. could you help me please.

Hi Jorge,

In 9.4+, you can use an HTTP class for this. Set the URI Paths to match only /, set the actions of Send To to: “redirect to” and the Redirect to Location to http://[HTTP::host]/psm/csr/default.asp.

The HTTP class would look like this in the bigip.conf:

profile httpclass redirect_root_httpclass {
   defaults from httpclass
   pool none
   redirect "http://[HTTP::host]/psm/csr/default.asp"
   paths "/"
}

If you wanted to use an iRule for this you could use something like this:

when HTTP_REQUEST {

   if {[HTTP::path] eq "/"}{

      HTTP::redirect "http://[HTTP::host]/psm/csr/default.asp"
   }
}

Aaron