Options -Indexes -MultiViews
DirectoryIndex index.php

<IfModule mod_headers.c>
    Header set Cache-Control "public, max-age=0, must-revalidate"
</IfModule>

RewriteEngine On
RewriteRule ^router\.php$ - [R=404,END]

# Existing public assets are served directly; all other paths reach index.php.
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [END]

RewriteRule ^ index.php [END]
