title: redirect subdomains bar one
body: <p>So I've set up a <strong>Amazon EC2</strong> and registerd a few domains with <strong>123-reg</strong>, i've set up my Apache VirtualHost  But now I'm going to need to set up a few sub domains (like <strong><em>kitten</strong>.example.com</em>). But it's only going to be a few, and I would like the rest of the subdomain wild cards to go to the base like this:</p>
  
  <p><strong>kitten</strong>.example.com  -> <strong>kitten</strong>.example.com <br /><strong>BUT</strong><br />
  *.example.com -> example.com</p>
  
  <p>currently my DNS with <strong>123-reg</strong> is as follows:</p>
  
  <pre>
  www         A       198.168.0.0<br />         
  kitten      A       198.168.0.0<br />
  *           A       198.168.0.0<br />
  </pre>
  
  <p>and my Apache <strong>httpd.conf</strong> is:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    DocumentRoot "/var/www/example.com"
    ServerName example.com
    ServerAlias example.com
    &lt;Directory "/var/www/example.com"&gt;
      Options Indexes FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  &lt;VirtualHost *:80&gt;
    DocumentRoot "/var/www/kitten.example.com"
    ServerName kitten.example.com
    ServerAlias kitten.example.com
    &lt;Directory "/var/www/kitten.example.com"&gt;
      Options Indexes FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>so how do i redirect all those wildecard subdomains to my base domain?</p>