Redirect https://example.com to https://www.example.com: Namecheap and Heroku
For anyone that is still having this issue, I found a solution with Namecheap for redirecting the root domain to a subdomain.
- I pointed my subdomain to my website location (Github pages in this case)
- I created a CNAME record for @ host and made its value my subdomain
This redirects my root domain to my subdomain.