Hi, what’s the best way to forward all non-www (naked) traffic to the www subdomain whilst keeping url parameters intact? I am on gigalixir if that restricts (or simplifies anything) and my dns A record points to the ip provided by gigalixir, but I’d like to manage this within Elixir/Phoenix rather than at the dns level.
I am thinking along the lines of a plug, and some check on the subdomain part of conn.host but I don’t know where to actually apply the redirect outside of controllers.
Thanks for any help or light you can shed on this.






















