Christopher Heng has a GREAT tutorial located here:
http://www.thesitewizard.com/apache/redirect-domain-www-subdomain.shtml