<IfModule mod_rewrite.c>
    RewriteEngine On

    # Skip if request is already pointing to /public
    RewriteCond %{REQUEST_URI} !^/public/

    # Skip if file or folder exists
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Internally rewrite everything into /public
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
