Here’s the entire code to redirect all pages of one domain to the homepage of another domain (place inside httpd.ini):
[ISAPI_Rewrite]
RewriteRule (.*) http://www.domain.com [I,RP,L]
and ofcourse verify multiple sample pages for 301 with header tool