I don't think that can be done via .htaccess; it needs to be done in the httpd.conf file instead. You can, of course, have a .htaccess file for each domain by putting them in the appropriate subfolders, but I think that actually setting up the two domains will require httpd.conf.