irule: redirect to different paths with same host.

Hi,

I’m new at F5 and iRule.

I try to redirect from root location to different path on the same node.

https://abc.domain.comhttps://abc.domain.com/path

What is wrong with this rule?

=================iRule===================================================

when HTTP_REQUEST {

if { ([string tolower [HTTP::host]] eq “abc.domain.com”) } {

HTTP::redirect “https://abc.domain.com/path

}

}

=========================================================================

if { ([string tolower [HTTP::host]] eq "abc.domain.com") and ([HTTP::uri] eq "/")} {

It works….Thanks SanjayP!!!