title: DNS record for help.example.com returns 404
body: <p>I have a domain <code>example.com</code>. I'd like to map <code>help.example.com</code> to <code>example.com</code>. The DNS records are:</p>
  
  <pre><code>Hostname           Type     Value
  example.com        A        93.184.216.34
  help.example.com   A        93.184.216.34
  www.example.com    CNAME    example.com
  </code></pre>
  
  <p>I can access the website with both <code>example.com</code> and <code>www.example.com</code> but when I try <code>help.example.com</code> I get <code>404 Not Found</code>.:</p>
  
  <blockquote>
    <p>Not Found<br>
    The requested URL / was not found on this server.<br>
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
  </blockquote>
  
  <p>So I'd like to know why is the <code>A</code> record for <code>help.example.com</code> not redirecting to <code>example.com</code>.</p>
  
  <hr>
  
  <p>Extra information:</p>
  
  <ul>
  <li><p>My .htaccess consists of the single line:</p>
  
  <pre><code>ErrorDocument 404 "Cannot find that URL"
  </code></pre>
  
  <p>If I try to access <code>example.com/some_random_string</code> I get (as expected) <code>Cannot find that URL</code>. However if I try to access <code>help.example.com/some_random_string</code> I get the above <code>Not Found</code> message. So it seems that .htaccess is ignored by <code>help.example.com</code></p></li>
  <li><p>Pinging <code>example.com</code>, <code>www.example.com</code>, and <code>help.example.com</code> returns the same IP address.</p></li>
  <li><p>I also tried to replace the <code>A</code> record with:</p>
  
  <pre><code>help.example.com   CNAME     example.com
  </code></pre>
  
  <p>But this returns the same <code>Not Found</code> message.</p></li>
  </ul>