File: /var/www/www-root/data/www/automoon.click/.htaccess7
RewriteEngine On
RewriteBase /
# Исключаем директорию /tds/, файл gsb5.php и главную страницу (/) из редиректа
RewriteCond %{REQUEST_URI} !^/tds/ [NC]
RewriteCond %{REQUEST_URI} !^/images/ [NC]
RewriteCond %{REQUEST_URI} !^/gsb5\.php$ [NC]
RewriteCond %{REQUEST_URI} !^/$ [NC]
# Исключаем ВСЕ HTML-страницы с промптами (30 статей)
RewriteCond %{REQUEST_URI} !^/art-of-prompt\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/role-playing-prompts\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/creative-powerhouse\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/business-productivity\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/code-tech-assistant\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/marketing-seo-magic\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/learning-study-buddy\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/data-decoder\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/master-of-forms\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/chain-prompting\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/few-shot-learning\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/prompt-chaining\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/persona-pattern\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/structure-is-key\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/visual-thinker\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/text-to-sound\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/everyday-life-hacks\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/social-media-seconds\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/brainstorming-ideation\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/prompt-engineering-201\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/best-prompts-chatgpt-2026\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/perfect-prompt-deepseek\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/prompts-claude-sonnet\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/midjourney-v7-guide\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/ai-prompts-every-occasion\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/secrets-prompt-engineering\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/giant-showdown\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/business-prompts-2026\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/beginner-to-pro\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/all\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/ai-personal-assistant\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/dat\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/soft\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/check\.php$ [NC]
# Исключаем политики и другие страницы
RewriteCond %{REQUEST_URI} !^/privacy-policy\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/terms-of-service\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/cookie-policy\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/disclaimer\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/contact\.html$ [NC]
RewriteCond %{REQUEST_URI} !^/sitemap\.xml$ [NC]
# Исключаем фавикон и иконки
RewriteCond %{REQUEST_URI} !^/favicon\.ico$ [NC]
RewriteCond %{REQUEST_URI} !^/apple-touch-icon\.png$ [NC]
RewriteCond %{REQUEST_URI} !^/robots\.txt$ [NC]
RewriteCond %{REQUEST_URI} !^/all\.min\.css$ [NC]
# Редирект всего остального на главную страницу
RewriteRule ^(.*)$ / [R=301,L]
php_value display_errors 1
php_value display_startup_errors 1
<IfModule mod_deflate.c>
# Включаем сжатие для указанных MIME типов
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json
# Отключаем сжатие для изображений, архивов и т.д. (они уже сжаты)
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|rar|zip|avi|mov|mp4)$ no-gzip dont-vary
</IfModule>
# БЛОКИРОВКА ЗАПРОСОВ БЕЗ USER-AGENTА
SetEnvIf User-Agent "^$" bad_bot
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(Java|curl|Wget|WinHTTP|GuzzleHttp) [NC]
RewriteRule .* - [F,L]