Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^app/([^/]+)/?$ index.php?page=app&slug=$1 [L,QSA]
RewriteRule ^admin/?$ admin/index.php [L,QSA]
RewriteRule ^admin/login/?$ admin/login.php [L,QSA]
RewriteRule ^admin/logout/?$ admin/logout.php [L,QSA]
RewriteRule ^install/?$ install.php [L,QSA]

<FilesMatch "^(config\.php|schema\.sql|\.env|.*\.bak)$">
  Require all denied
</FilesMatch>
