Domain without www returning 301 as expected but 404 with www
I need both versions of a URL to resolve properly, “www.example.com” and “example.com”. Currently only the root domain actually gets redirected as it should (302). The www url ends in a 404.