Options -Indexes
RewriteEngine On
RewriteBase /sinergi/

# Allow direct access to public assets
RewriteCond %{REQUEST_URI} ^/sinergi/public/ [NC]
RewriteRule ^ - [L]

# Route everything else to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
