# BEGIN WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^oldsite.com
RewriteRule (.*) http://newsite.com/$1 [R=301,L]
# END WordPress

Make sure to change url for oldesite.com and newsite.com