irule for redirection

Hi guys,

need irule for redirection as below :

URL as http://icargostg.goindigo.in it has to be redirected to https://icargostg.goindigo.in/icargostg

Pls. let me irule for above redirection..

Give this a whirl.

when HTTP_REQUEST {
    if {[HTTP::path] equals "/"}{
        HTTP::respond 301 noserver location "https://[HTTP::host]/icargostg"
    }
}

Give this a whirl.

when HTTP_REQUEST {
    if {[HTTP::path] equals "/"}{
        HTTP::respond 301 noserver location "https://[HTTP::host]/icargostg"
    }
}

thank you

thank you