# Türkçe karakter desteği için encoding ayarları
AddDefaultCharset UTF-8

# PHP ayarları
<IfModule mod_php7.c>
    php_value default_charset "UTF-8"
    php_value internal_encoding "UTF-8"
    php_value output_buffering "On"
</IfModule>

# JSON dosyaları için charset
<FilesMatch "\.(json)$">
    AddCharset utf-8 .json
</FilesMatch>

# PHP dosyaları için charset
<FilesMatch "\.(php)$">
    AddCharset utf-8 .php
</FilesMatch>

# CSS ve JS dosyaları için charset
<FilesMatch "\.(css|js)$">
    AddCharset utf-8 .css
    AddCharset utf-8 .js
</FilesMatch>

# Güvenlik için hassas dosyaları koruma (sadece db.php)
<FilesMatch "^(db\.php)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Gzip sıkıştırma (performans için)
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json
</IfModule>
