<IfModule mod_rewrite.c>
RewriteEngine On

# Requests for the folder root go straight to the front controller
RewriteRule ^$ public/index.php [L]

# Everything else is handed to public/ — which serves real files
# (css, js, images, uploads) directly and routes everything else
# through public/index.php
RewriteRule ^(.+)$ public/$1 [L]
</IfModule>
