# Chimpompam
DirectoryIndex index.html
Options -Indexes

# Archivos internos que no se deben poder abrir desde internet
<FilesMatch "^(config\.php|lib\.php|datos\.json|LEEME\.txt)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>

# La app siempre con la última versión
<FilesMatch "\.(html|js|webmanifest)$">
  Header set Cache-Control "no-cache"
</FilesMatch>
AddType application/manifest+json .webmanifest

# Forzar HTTPS (quita el # de las 3 líneas siguientes cuando tu dominio tenga el candado)
# RewriteEngine On
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
