# Portal de noticias
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  # URLs amigables: /nota/mi-nota y /categoria/futbol
  RewriteRule ^nota/([A-Za-z0-9\-]+)/?$ nota.php?s=$1 [L,QSA]
  RewriteRule ^categoria/([A-Za-z0-9\-]+)/?$ categoria.php?s=$1 [L,QSA]
</IfModule>

# Proteger archivos sensibles
<FilesMatch "^(config\.php|install\.lock|\.htaccess)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>


<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType image/webp "access plus 1 month"
  ExpiresByType text/css "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
</IfModule>
