# Une petite douceur : tout passe par index.php (login) et media.php (illustrations).
DirectoryIndex index.php
Options -Indexes

<FilesMatch "^(app\.html|config\.php|auth\.php)$">
  Require all denied
</FilesMatch>

RewriteEngine On
# (ce fichier remplace les règles du dossier parent : on remet la redirection HTTPS)
RewriteCond %{ENV:HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^illustrations/(.*)$ media.php?f=$1 [L,QSA]
