.htaccess Redirect: Tested Rules for Pages, Folders, Domains and HTTPS
Copy-paste .htaccess redirect rules for pages, folders, domains, HTTPS, www and query strings, each run on Apache 2.4 with the curl output shown, plus which module wins and a symptom table for loops, 500s and rules that do nothing.