[thelist] Multiple Domain Names

Brian Cummiskey brian at hondaswap.com
Mon Oct 26 14:10:10 CDT 2009


The best way to handle multiple domain names is to park the 2ndary names 
on the primary, and in the primary, perform an htaccess or otherwise 301 
redirect that says something like "if not www.site.com, make it 
www.site.com".



RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [L,R=301]



This will also solve non-www vs www subdomain issues, keeping all your 
visitors on 1 true site.  (but will break REAL subdomains if you use 
them, so use accordingly)



More information about the thelist mailing list