Options -Indexes
DirectoryIndex public/index.php index.php

RewriteEngine On

# Route all requests into the public/ folder when docroot is the project root
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1 [L]
