How can I use .htaccess file for non-www to www 301 redirection?

serpent_driver

Well-Known Member
#2
Code:
<IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{HTTP_HOST} !^www\.
      RewriteRule ^(.*)$ http://www.gurgaonnightlife.co.in/$1 [R=301,L]
</IfModule>
You should add SSL certificate to your domain!
 
Top