RewriteEngine On

# Force all .php requests through index.php
# This ensures autoloader and global setup are always active
RewriteRule \.php$ index.php [QSA,L]

# General routing for non-existent files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
