Redirect to new domain with .htaccess [closed] July 27, 2022 by Tarik Billa RewriteEngine On RewriteCond %{HTTP_HOST} ^www.oldomain.com [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]