title: Heroku Redirect from www to non www
body: <p>I've just set up my custom domain on Heroku. I would like to redirect from www to non www.</p>
  
  <p>The Domain Names I have set on Heroku are:</p>
  
  <pre><code>example.herokuapp.com
  www.example.com
  example.com
  </code></pre>
  
  <p>I'm using DNSimple. I have the following settings (in the form Type / Name / Content):</p>
  
  <pre><code>ALIAS / example.com / example.herokuapp.com
  CNAME / www.example.com / example.herokuapp.com
  TXT / example.com / ALIAS for example.herokuapp.com
  </code></pre>
  
  <p>I've tried using a URL type record but it doesn't work. How should I do the redirect? Thanks.</p>