title: redirect all wildcard subdomains to root domain
body: <p>Okay, I have done a fair amount of searching but still can't find something specific enough to handle my problem.</p>
  
  <p>Right now I have a DNS record that redirects all other subdomains to my server. What I'm asking is what would make <code>example.mydomain.com</code> return <code>HTTP/1.1 301</code> and redirect to just <code>mydomain.com</code></p>
  
  <p>My apologies if this has been covered, I just couldn't find anything specific enough.</p>