Page is a not externally linkable
g1smd - 5:31 pm on Aug 29, 2005 (gmt 0)
. Redirects are easy, and work for all pages on the sub-domain: Options +FollowSymLinks
I would make www the default for the root. I almost always do so (this one site wanted the opposite of that). Most people assume that a web URL will include a www. For other subdomains, www isn't always assumed.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^widgets.com [NC]
RewriteRule ^(.*)$ http://www.widgets.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.red.widgets.com [NC]
RewriteRule ^(.*)$ http://red.widgets.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.blue.widgets.com [NC]
RewriteRule ^(.*)$ http://blue.widgets.com/$1 [L,R=301]