How to permanently redirect old domain to the new one via htaccess file - Freelance Web Developer Manchester | SEO Consultant
0752 - 340 - 6145

Open up the root folder of your project on the old domain and look for the file called. : .htaccess ( If you can’t find it just create one in your text editor)

Then just add the following snippet in there:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ [R=301,L]