I have been doing some testing with ee4 for the past couple of weeks and yesterday I moved a live site to my ee4 server. The results have been impressive with almost double page views and a similar increase in ad revenue. Because of this I plan to move my other sites but have one thing I need to fix first.
- www to non-www redirect. My sites currently use www.domain.com and I would like to keep this. But when I use “ee site create domain.com” everything redirects to domain.com. I tried using “ee site create www.domain.com” and this worked but when I use the --ssl=le option this only creates a cert for www.domain.com, so if someone visits https://domain.com they get a cert error. When I use the --ssl=le option on the non www domain it creates a cert for both non-www and www domains.
How can I remove the www to non-www redirect and have a non-www to www redirect for my sites? Either in a global config or per site config.