<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Send every request into the public directory.
    # Do NOT add !-d / !-f conditions here: for the homepage,
    # REQUEST_FILENAME is the docroot itself (a real dir), which
    # would block the rewrite and show Apache's folder listing.
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
