Today I came up against a frustrating realization: Apache doesn’t have a satisfying way to redirect multiple domains to canonical hostnames! In other words, it’s fairly easy to redirect one domain’s content from “www.example.com” to just plain “example.com” or to make both hostnames work, but there’s no one-stop solution to do this with a dozen domains. I’ve hit on a method that correctly redirects alternate hostnames and will save you aggravation in the long run.