<IfModule mod_rewrite.c>
    RewriteEngine On

    # 1. РЕДИРЕКТ С WWW НА БЕЗ WWW
    RewriteCond %{HTTP_HOST} ^www\.belkatort\.ru$ [NC]
    RewriteRule ^(.*)$ https://belkatort.ru/$1 [R=301,L]

    # 2. РЕДИРЕКТ С index.html НА КОРЕНЬ (убираем дубль главной)
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
    RewriteRule ^index\.html$ https://belkatort.ru/ [R=301,L]

    # 3. ЗАПРЕТ ДОСТУПА К .json и .log файлам (ваше исходное правило)
    RewriteRule \.(json|log)$ - [F,L]
</IfModule>

# Дополнительная защита через FilesMatch
<IfModule mod_authz_core.c>
    <FilesMatch "\.(json|log)$">
        Require all denied
    </FilesMatch>
</IfModule>

# === ОПЦИОНАЛЬНО: КЭШИРОВАНИЕ И СЖАТИЕ ===
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
</IfModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript
</IfModule>