RewriteEngine On
RewriteCond %{HTTP_HOST} ^tests.dev-ancgvw.com
RewriteRule (.*) http://tests.dev-ancgvw.com/$1 [R=301,L]