Here’s how to redirect HTTP to HTTPS using .htaccess file in Apache web server. Use it to force HTTPS/SSL on your websites.
Convert .pem to .ppk using PuTTY
Convert .pem to .ppk using PuTTY to connect to Amazon EC2 instance from Windows. Amazon provides a .pem private key which cannot be directly used in PuTTY.