Forum Moderators: phranque
I need to be able to redirect non-www traffic to www but also be able to use subdomains. Can anyone help me understand how this would be done? Also, if you see any other problems with the way I have implemented this please let me know.
Here is what I have in my .htaccess:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]