How to permanently redirect old domain to the new one via htaccess file

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: