DirectoryIndex index.php

Options -Indexes

RewriteEngine On


# Закрываем служебные файлы
RewriteRule ^\.geoip-cache(?:/|$) - [F,L]
RewriteRule ^\.security-secret$ - [F,L]

<Files "security.php">
    Require all denied
</Files>


# ================================================================
# Заглушка может грузить свои CSS / картинки
# ================================================================

RewriteRule ^assetss(?:/|$) - [L]


# ================================================================
# Ресурсы ОСНОВНОГО сайта защищены cookie
# ================================================================

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+\.(?:html?|css|js|mjs|json|png|jpe?g|gif|webp|svg|ico|woff2?|ttf|otf|mp4|webm))$ asset-gate.php?file=$1 [QSA,L]


# Checkout
RewriteRule ^checkout/?(.*)$ proxy.php?__proxy_path=$1 [QSA,L]