/ Published in: Apache
Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias and_so_on.com just has [NC].
Insert the code in your .htaccess-file in your website's root folder.
Insert the code in your .htaccess-file in your website's root folder.
URL: http://www.torkiljohnsen.com/2008/01/16/some-easy-use-of-mod_rewrite/