Sep 14, 2008
Force www. in your URL using .htaccess
.htaccess | Tutorials & Resources
Just add the following code to your .htaccess file in the highest folder of your web directory and yor visitors will be forced to use the www version.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]



















No Comments, Comment or Ping
Reply to “Force www. in your URL using .htaccess”