RewriteEngine on RewriteCond %{HTTP_HOST} !^ www.team-bhp.com$ RewriteRule ^(.*)$ http://classifieds.team-bhp.com/$1 [R=301]