RSS

Monthly Archives: December 2012

Redirecting non WWW url to WWW

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example\.com$ [NC]

RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

The above rule will redirect example.com to http://www.example.com, It works believe me! 😉

Advertisements
 
1 Comment

Posted by on December 13, 2012 in Uncategorized