RewriteEngine on
RewriteRule ^(.*)$ /public/$0RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?$0 [L,QSA]RewriteEngine On
RewriteCond %{THE_REQUEST} ^\S+\s+/public(\S+)
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?$0 [L,QSA]