I purchased a domain through Google Domains and I am hosting my app on Heroku.
I would like users to be able to access my app through the naked domain, but Google Domains does not allow CNAME's to be set for the naked domain. They have an option that allows "Subdomain forwarding", however, when that is set, the URL path is dropped.
For instance, if I set up "Subdomain forwarding" for the naked domain and I go to example.com/123
, it redirects the user to example.com
.
How can I forward both the domain and the path?