How to Force a WWW and SSL Redirect Here's the basic htaccess code to force a WWW into the URL. It also optionally redirects to the HTTPS version of the url. Scot Ranney, April 14, 2016