1<IfModule mod_rewrite.c>
2 RewriteEngine On
3 RewriteCond %{HTTPS} !=on
4 RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
5 RewriteRule ^(.*)$ public/ [L]
6</IfModule>
1RewriteCond %{SERVER_PORT} 80
2RewriteRule ^(.*)$ https://YOURWEBSITEDOMAIN/$1 [R,L]
3