How to force HTTPS on your website

I thought it might be useful to some of you to be able to enforce SSL version of your website for all guests since not everybody is using Firefox with addon "HTTPS Finder" even though I highly recommend it. ok here is the thing - you have to put .htaccess file in root of your website (usually where index.html or index.php is) and put inside following: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] For me it works flawlessly. Read more [...]