Options +FollowSymLinksRewriteEngine onRewriteCond %{HTTP_HOST} ^example\.comRewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]