Options -Indexes

# Limites de upload para videos grandes (500MB)
<IfModule mod_php.c>
    php_value upload_max_filesize 500M
    php_value post_max_size 512M
    php_value memory_limit 768M
    php_value max_execution_time 300
    php_value max_input_time 300
</IfModule>

# Proteção dos dados JSON
<FilesMatch "\.json$">
    Require all denied
</FilesMatch>

# Proteção do diretório de backups
RewriteRule ^backups/ - [F,L]

# Rewrite engine
RewriteEngine On

# Arquivos e diretórios reais passam direto
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Tudo vai pro index.php
RewriteRule ^(.*)$ index.php?route=$1 [QSA,L]

# Segurança
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options SAMEORIGIN
</IfModule>
