Right now my domain www.example.com
is setup to force HTTPS and it works. The site also correctly links everything to HTTPS. (there are no occurences of HTTP in the database anywhere).
But if you are visiting a subpage, you can change the url to HTTP again, for example http://example.com/subpage/
and it will not enforce HTTPS.
I have this rule in my .htaccess
in the root:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
Any ideas what the cause of this is?