How to force a browser to use SSL:
- Create the following .htaccess file on root folder:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.thedomain.com/$1 [R,L]
- In case of wish to force for a particular folder:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} somefolder
RewriteRule ^(.*)$ https://www.thedomain.com/somefolder/$1 [R,L]
(*) Important Note: It is only a simple reference using many sources. The shown information is property of the respective owners. We don't guarantee the truthfulness of this information.