In my last post, I showed how to canonicalize a domain in phoenix
[https://sublimecoding.com/how-to-canonicalize-a-domain-in-elixir-phoenix-framework/] in
that post I had a bug. I was properly redirecting users to the desired canonical
domain, however I was using a 302 redirect instead of a 301, and a 301 should be