RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.eskidomain\.com
RewriteRule (.*) http://www.yenidomain.com/ $1 [R=301,L]