step13,
Too easy:
RewriteEngine on
RewriteCond %{HTTP_HOST} old\.domain$ [NC] # only necessary if co-located
RewriteRule .? http://new.domain%{REQUEST_URI} [R=301,L]
If you’d like to learn more about mod_rewrite (so you can do simple things like this yourself - and KNOW what the code is doing for you), http://dk.co.nz/seo is my tutorial based on many, many years helping members here.
Regards,
DK