# BulutCMS (Apache)
Options -Indexes
DirectoryIndex index.php

# Authorization başlığını PHP'ye geçir (eklenti için)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Güzel adresler: Admin > Ayarlar > "Güzel adresler" açıkken kullanılır
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/?$ index.php?p=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([0-9A-Za-z_-]+)/?$ index.php?p=$1&id=$2 [L,QSA]
</IfModule>

# Gizli dosyalar
<FilesMatch "^(config\.php|\.htaccess)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Order allow,deny
    Deny from all
  </IfModule>
</FilesMatch>
