I was able to add Heroku custom domains for my application. I would like to know how to grab requests starting with www and redirect them to a bare domain. For example, I have the following user domains mapped to my Heroku application:
www.myapp.com myapp.com
Requests for http://myapp.com and http://www.myapp.com succeeded, but www remains enabled.
purpose
I want all requests for http://www.myapp.com be redirected to http://myapp.com . This should also work for other paths, e.g. http://www.myapp.com/some/foo/bar/path redirects to http://myapp.com/some/foo/bar/path . I want something like this: http://www.stef.io and see how www. left the address bar.
The instructions I have found so far on Google are about editing my .htaccess file, but I am running a Python application on a flash framework on Heroku.
redirect python flask dns heroku
Kit
source share