[CentOS-docs] www.centos.org and the wildcard dns

Fri Apr 16 21:52:18 UTC 2010
Ed Heron <Ed at Heron-ent.com>

From: "Karanbir Singh", Friday, April 16, 2010 8:57 AM

> ...
> At the moment there is a www.centos.org site. There is also a wildcard
> dns setup that directs anything.centos.org to www.centos.org's content
> ...

  Unless I'm missing something, http://yadda.centos.org doesn't redirect, it 
displays a copy of the (www.)centos.org content.

  I'm not that knowledgeable about SEO stuff, but wouldn't a redirect be 
better?

  Assuming an Apache setup, adding something like a catch-all virtual host 
after any other centos.org host definitions.  I prefer URL's without the www 
unless there is a good reason...

<VirtualHost *:80>
  ServerAlias *.centos.org
  Redirect permanent / http://centos.org
</VirtualHost>

  That should get the browser client to notice and change where it is going.