I have shared sever and using Let's Encrypt as a SSL and I tried adding the below code in the .htaccess I need help to redirect my website from http to https (with and without www)
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]