I have a site that only runs content on the www. root.
like http://www.domain.com
This is the htaccess code
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/$1 [L,R=301]
I am using to redirect all
http://domain.com
to
http://www.domain.com
But now I want to add
http://blogs.domain.com
http://community.domain.com
etc
Should I just remove this htaccess code, is there a way to rewrite it so it only redirects
http://domain.com
to
http://www.domain.com
instead of redirecting all
http://*.domain.com
to
http://www.domain.com?
TIA, +rep for quality help.
like http://www.domain.com
This is the htaccess code
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule (.*) http://www.domain.com/$1 [L,R=301]
I am using to redirect all
http://domain.com
to
http://www.domain.com
But now I want to add
http://blogs.domain.com
http://community.domain.com
etc
Should I just remove this htaccess code, is there a way to rewrite it so it only redirects
http://domain.com
to
http://www.domain.com
instead of redirecting all
http://*.domain.com
to
http://www.domain.com?
TIA, +rep for quality help.