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

    # Avoid rewrites for physical files and directories
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Forward everything else to the index.php router
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
