DirectoryIndex index.html index.php index.htm

# Redirecionar arquivos .md para o visualizador
RewriteEngine On
RewriteRule ^([^/]+)\.md$ viewer.php?file=$1.md [L,QSA]

# Permitir acesso aos arquivos .md (fallback)
<Files "*.md">
    Order allow,deny
    Allow from all
</Files>

# Configurar tipo MIME para arquivos Markdown
AddType text/markdown .md

# Headers para melhor apresentação
<IfModule mod_headers.c>
    Header set X-Content-Type-Options nosniff
    Header set X-Frame-Options DENY
    Header set X-XSS-Protection "1; mode=block"
</IfModule>
