Drupal FAQ

On druapl website how to redirect non-www and http requests to https and www version

If  you have recently installed a security certificate on your site with Linux hosting and trying to figure out a way to convert all incoming page requests to secure-www version (https://www.) then add the following piece of code to your ".htaccess" file immediately after the line "RewriteEngine on".