Redirect all traffic from one domain to another
snippet in htaccess

Redirect all traffic from one domain to another

user1450

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain1\.com [NC]
RewriteRule ^(.*)$ http://www.domain2.co.uk/$1 [R=301,NC,L]