<IfModule mod_rewrite.c>
    RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] RewriteCond %{REQUEST_URI} !^/public/
</IfModule>