title: Problems redirecting old domain to new with Apache and htaccess
body: <p>My homepage is located at www.nazgulled.net and I bought a new domain which is www.ricardoamaral.net. Both these domains point to the same exact server.</p>
  
  <p>I'm having two problems with the redirection, my current code is this:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^(www\.)?nazgulled\.net [NC]
  RewriteRule ^(.*)$ http://www.ricardoamaral.net/$1 [L]
  </code></pre>
  
  <p>For now I'm just testing but the idea is to replace [L] with [L,R=301] when I'm ready to move the whole thing, just so you know.</p>
  
  <p>Anyway...</p>
  
  <p><strong>1)</strong> This is not working, when I try it, I can't access "nazgulled.net", it gives me a "server internal error" and I don't understand why... I don't understand why because if replace "ricardoamaral.net" by "google.com", the redirect works just fine :/</p>
  
  <p><strong>2)</strong> I have a few subdomains and I would like to redirect everything in those too. My first choice is to add different rewrite conditions/rules for each of the subdomains but that takes a lot of manual code and if the user types some subdomain that doesn't exist, they don't be redirect it and I also want that.</p>