Need a help on domain redirection

Need you support to achieve the below change.. When user is trying to access http://abc.com should be redirected to http://www.abc.com

Try this:

when HTTP_REQUEST {
  if { [string tolower [HTTP::host]] eq "abc.com" } {
    HTTP::redirect "www.abc.com"
  }
}

Hope this helps,

N