# php -- handler de PHP para el subdominio (igual que Habits). Sin esto, en
# algunos hostings los .php no se ejecutan. Ajustá la versión si tu cPanel usa otra.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php83 .php .php8 .phtml
</IfModule>

Options -Indexes
DirectoryIndex app.php

<FilesMatch "^(config\.php|composer\.(json|lock))$">
    Require all denied
</FilesMatch>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    Header always set Referrer-Policy "no-referrer"
    Header always set X-Frame-Options "DENY"
    Header always set Permissions-Policy "camera=(), microphone=(self), geolocation=()"
</IfModule>
