# ============================================================
# .htaccess untuk Aplikasi Jurnal Guru Masuk Kelas
# Safe Apache Security & Rewrite Rules untuk cPanel
# ============================================================

# Atur default index page
DirectoryIndex index.php index.html

# Matikan directory listing (keamanan)
Options -Indexes

# Proteksi file sensitif
<FilesMatch "\.(sql|log|ini|sh|bak)$">
    Order allow,deny
    Deny from all
</FilesMatch>

# Pengaturan UTF-8 Default
AddDefaultCharset UTF-8

# Mengaktifkan Mod_Rewrite (jika dibutuhkan)
<IfModule mod_rewrite.c>
    RewriteEngine On
    # Proteksi folder config & database
    RewriteRule ^(config|database)/ - [F,L]
</IfModule>
