# ==========================================================================
# MODSTECHWORLD (.htaccess) - cPanel / Apache Hız ve Güvenlik Yapılandırması
# ==========================================================================

# 1. Varsayılan Karakter Seti
AddDefaultCharset UTF-8

# 2. GZIP Sıkıştırma (Sayfa Yükleme Hızlandırma)
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json image/svg+xml
</IfModule>

# 3. Tarayıcı Önbellekleme (Browser Caching)
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/jpg "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType image/svg+xml "access plus 1 month"
  ExpiresByType text/css "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
  ExpiresByType image/x-icon "access plus 1 year"
</IfModule>

# 4. Güvenlik Başlıkları
<IfModule mod_headers.c>
  Header set X-Content-Type-Options "nosniff"
  Header set X-XSS-Protection "1; mode=block"
  Header always append X-Frame-Options SAMEORIGIN
</IfModule>

# 5. Dizin Listelemeyi Kapatma (Güvenlik)
Options -Indexes
