I think I put this in the wrong spot earlier

My site shows https if you type in https://www.mysite.com but if you type in mysite.com it doesn't show https. How do I get the page to show https when I type in www.mysite.com or mysite.com. The ssl is applied to my domain. I have xhtml and css pretty rusty at it. My site is written in php, html, and css.

my site is a dating site and I plugged in

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R,L]

into .htaccess

but it made the https come up but locked it so no one can sign up or where I couldn't make changes in the admin area.

please help