<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Prevent directory listing
    Options -Indexes

    # Allow direct access to assets (css, js, images, font files)
    RewriteCond %{REQUEST_URI} \.(css|js|png|jpg|jpeg|gif|svg|ico|ttf|woff|woff2|eot)$ [NC]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ - [L]

    # Route all other requests (including /install) to front controller index.php
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
