Options -Indexes
DirectoryIndex index.php index.html

# ── PHP Handler (LiteSpeed + Apache) ────────────────────────
<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>

# ── Bảo mật ─────────────────────────────────────────────────
<FilesMatch "\.(sql|log|env|json|lock|htpasswd)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Chặn truy cập thư mục config
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^config/ - [F,L]
    RewriteRule ^includes/ - [F,L]
</IfModule>

# ── Charset ─────────────────────────────────────────────────
AddDefaultCharset UTF-8

# ── Tắt signature server ────────────────────────────────────
ServerSignature Off
