Namecheap domain won't redirect without "www" Namecheap domain won't redirect without "www" heroku heroku

Namecheap domain won't redirect without "www"


You won't be able to do this with DNS provided redirects.

The reason is that at the point of redirect, ie your DNS provider they would need to:

  1. Accept https/443 requests to their redirector
  2. have a valid certificate for hacksofcharity.com

if they don't you'll either receive a timeout, or a certificate mismatch in your browser. When apex domains are involved with https then your only option is to be using a DNS provider that supports using CNAME - see https://devcenter.heroku.com/articles/custom-domains#add-a-custom-root-domain and perform any redirects within your application code base.