DNS configuration to force root domain to www
- by kolosy
we have an app running on heroku. the dns setup is like this:
A record for domain.com - heroku front end ip addresses
CNAME for www.domain.com - specific host name for our app provided by heroku
we also have an SSL cert for www.domain.com.
the issue is that if someone goes to https://domain.com/secure_stuff, they will get heroku's SSL cert, instead of ours, causing lots of fear. We can do things on our end to make sure that all of our URLs point to https://www.domain.com, but it still won't solve this specific issue.
is there a way to configure the DNS record to redirect all root domain traffic to the www subdomain?