# === cPanel / shared hosting friendly settings ===

# Serve index.php by default
DirectoryIndex index.php index.html

# Naikkan batas upload & waktu eksekusi (banyak cPanel mengizinkan override lewat .htaccess)
php_value upload_max_filesize 64M
php_value post_max_size 70M
php_value memory_limit 512M
php_value max_execution_time 300
php_value max_input_time 300

# Larang akses langsung ke folder uploads (file Excel user)
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^uploads/ - [F,L]
</IfModule>

# Sembunyikan composer files
<FilesMatch "^(composer\.(json|lock)|\.htaccess)$">
    Require all denied
</FilesMatch>
