I am using Heroku php with SSL on. Everything is setup and https works perfectly. My domain hosted in Godaddy. Heroku as apache web server. but http://mysite.com, www.mysite.com will not redirect to https://www.mysite.com which is what i want.
I had changed the .htaccess file to following
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} protected [NC,OR]
RewriteCond %{REQUEST_URI} protected2 [NC,OR]
RewriteCond %{REQUEST_URI} protected3 [NC]
I also forward domain to https://www.mysite.com