Redirect http to https via htaccess
Using below scripts in .htaccess file, you can make https as your domains default protocol. That is if some tries to visit your website as example.com, it will automatically take them to https://www.example.com. Please change (www.example.com) to your domain name.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
In case you wish to force HTTPS for a particular folder you can use:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} somefolder
RewriteRule ^(.*)$ https://www.domain.com/somefolder/$1 [R,L]