If you want any of your web-directory to be accessed only via Secure HTTP (HTTPS) protocol then placing following code in “.htaccess” will make sure that any URL or Web-address will be converted from Http to Https.
Recently in one of my project I was suppose to download file from a secure website. Actually I have to set the scheduler job for downloading nightly builds/full files from the server and the files are placed on secure website.
When it comes to use SSL over apache, OpenSSL is there for us to do everything we want. XAMPP and WAMP both comes with OpenSSL compiled version of Apache, so it becomes quite handy...