title: Setting up a custom domain with Heroku and namecheap
body: <p>I've followed all the instructions on <a href="https://devcenter.heroku.com/articles/custom-domains" rel="nofollow noreferrer">https://devcenter.heroku.com/articles/custom-domains</a> to get my custom domain set up, and it still isn't working.</p>
  <p>On Heroku, I have the following domains:</p>
  <p><code>myapp.herokuapp.com</code></p>
  <p><code>example.com</code></p>
  <p><code>www.example.com</code></p>
  <p>And on Namecheap, I have the following settings:</p>
  <p><strong>HOST NAME | IP ADDRESS/URL | RECORD TYPE</strong></p>
  <p>@ <code>http://example.com</code> URL Redirect</p>
  <p>www <code>myapp.herokuapp.com</code>. CNAME(Alias)</p>
  <hr />
  <p>When I run: &quot;host <code>www.example.com</code>&quot; in my terminal, I expect to get &quot;<code>www.example.com</code> is an alias for <code>myapp.herokuapp.com</code>&quot;. Instead, I get:</p>
  <p>&quot;<code>www.example.com</code> is an alias for <code>myapp.heroku.com</code>&quot;</p>
  <p>I can't figure out why it is pointing to <code>myapp.heroku.com</code>, because I have only specified <code>myapp.herokuapps.com</code>.</p>
  <p>Does anybody know why this is happening?</p>