Skip to Content.
Sympa Menu

cc-devel - Re: [cc-devel] apache 101 - stripping off the www

cc-devel AT lists.ibiblio.org

Subject: Developer discussion for Creative Commons technology and tools

List archive

Chronological Thread  
  • From: "Nathan Kinkade" <nkinkade AT creativecommons.org>
  • To: "Victor Stone" <fourstones.net AT gmail.com>
  • Cc: cc-devel AT lists.ibiblio.org
  • Subject: Re: [cc-devel] apache 101 - stripping off the www
  • Date: Sun, 13 Jul 2008 12:23:46 -0700

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




Archive powered by MHonArc 2.6.24.

Top of Page