diff --git a/lib/ellie_web/plugs/redirect.ex b/lib/ellie_web/plugs/redirect.ex index c15a05e8..4e651b73 100644 --- a/lib/ellie_web/plugs/redirect.ex +++ b/lib/ellie_web/plugs/redirect.ex @@ -7,7 +7,7 @@ defmodule EllieWeb.Plugs.Redirect do def call(conn, _) do case conn.host do - "www" <> bare_domain -> + "www." <> bare_domain -> conn |> put_status(:moved_permanently) |> Phoenix.Controller.redirect(