I have a .htaccess that's supposed to force connection using SSL. It works well on localhost, when I take it online I have all manner of errors. Here is my code.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z]*)/?$ goto.php?page=$1
ErrorDocument 404 PageNotFound
IndexIgnore *
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
Where am I missing it please, thank you.