Initial commit - ColdFilm parser

This commit is contained in:
2026-02-24 16:00:09 +03:00
commit 7b75373a57
10 changed files with 676 additions and 0 deletions

46
.htaccess Normal file
View File

@@ -0,0 +1,46 @@
# .htaccess для films.tolchin.pro
# Включение RewriteEngine
RewriteEngine On
# Перенаправление на HTTPS (раскомментируйте если есть SSL)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Перенаправление www на без-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Кэширование статических файлов
<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 image/x-icon "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
</IfModule>
# Сжатие
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
</IfModule>
# Защита от прямого доступа к конфигурационным файлам
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
# Безопасные заголовки
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
</IfModule>
# Правила для SEO
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ index.html [L]