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]


#htaccess #redirect-to #www-to-non-www #non-www-to-www