<IfModule mod_rewrite.c>
    Options -Indexes
    RewriteEngine On

    RewriteCond %{REQUEST_URI} !/public(/|$) [NC]
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
