Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Help - force www or "non www" version of a site #1970
So actually I've changed my mind. Doing this at the DNS level is not great for me, the DNS I'm using could only redirect at the root level but not with paths.
So I had to do this at the app level. I'm running on Heroku so it's not like I have easy access to the server config.
In short, I've relied on
Then you just need to register this in