How to redirect to

In this tutorial i am going to show you how to redirect to It is very important to redirect your website to 

For example, if a visitor goes to, you may want them to be automatically redirected to, or vice versa. I will simply show you how we can do it using .htaccess file.

Just create a .htaccess file and paste this below code in your htaccess file.


RewriteEngine on
RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^(.*)$$1 [R=permanent,L]


Facebook Github
A web enthusiastic, a self-motivated full-stack software engineer from Dhaka, Bangladesh with experience in developing applications using Laravel , React and Vue js