# Protection basique du dossier monitoring
<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Rediriger HTTP vers HTTPS si disponible
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Empêcher l'accès direct aux fichiers sensibles
<FilesMatch "^(config\.php|\.htaccess)$">
    Require all denied
</FilesMatch>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
