# Front controller — route all non-file requests to index.php
<IfModule mod_rewrite.c>
    RewriteEngine On

    # Serve real files/directories directly
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]

    # Everything else goes through the front controller
    RewriteRule ^ index.php [L]
</IfModule>

DirectoryIndex index.php
