Best way to do this is a ServerAlias directive in your Apache config
It's a single line – no plugins required
(presumes, of course, that your DNS entries for @ and www.domain.tld point to the same IP)
July 22, 2020 at 09:00AM
via reddit https://www.reddit.com/r/Wordpress/comments/hvtay0/suggestions_for_a_plugin_to_redirect_all_www/fyv9b8t?utm_source=ifttt