The website's .htaccess file is as attached. The site has SSL installed, but there is access to both http and https. How can I redirect to https even if someone enters through http? I have tried a few methods, but even if it redirects to https, the site shows FTP files and the script does not work. Therefore, the following code snippet has been added to the .htaccess file:
```apache
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
```
```apache
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
```