title: Redirect any sub domain to a page on main domain
body: <p>Just a quicky really. I want to be able to redirect anybody who types a <code>subdomain.mydomain.com</code> to be redirected to a page on my main domain. i.e If I typed: <code>answers.mydomain.com</code> I would be redirected to <code>mydomain.com/suberror</code> for instance.</p>
  <p>I would like this to be a universal rule if possible because I thought it would be easier to add statements to exclude any subdomains that I didn't want to be redirected rather than add statements to include every other subdomain. I will need to this using a <code>.htaccess</code> file by the way.</p>