[cc-devel] apache 101 - stripping off the www
Nathan Kinkade
nkinkade at creativecommons.org
Sun Jul 13 15:23:46 EDT 2008
2008/7/13 Victor Stone <fourstones.net at gmail.com>:
> sorry for the 101 question
>
> anybody know of a way in apache config to physically redirect browsers
> from a ServerAlias (www.ccmixter.org) to the main virt domain
> (ccmixter.org) ? I've tried it in rewrite but that didn't work and I
> prefer not to do it in php.
>
> Thanks
> VS
Here's what we use for creativecommons.org (requires mod_rewrite):
RewriteCond %{HTTP_HOST} =www.creativecommons.org
RewriteRule ^/(.*)$ http://%{SERVER_NAME}/$1 [L,R=301]
Nathan
More information about the cc-devel
mailing list