Options +SymLinksIfOwnerMatch 
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$

RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]
