:: How to configure non www to www domain name in htaccess
+ edit .htaccess file
vi .htaccess
+ add these lines:
RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ //www.%{HTTP_HOST}/$1 [R=301,L]
7 sec read
:: How to configure non www to www domain name in htaccess
+ edit .htaccess file
vi .htaccess
+ add these lines:
RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ //www.%{HTTP_HOST}/$1 [R=301,L]