This commit is contained in:
46
.htaccess
46
.htaccess
@@ -1,46 +0,0 @@
|
|||||||
# .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]
|
|
||||||
34
robots.txt
34
robots.txt
@@ -1,34 +0,0 @@
|
|||||||
# robots.txt для films.tolchin.pro
|
|
||||||
|
|
||||||
Host: films.tolchin.pro
|
|
||||||
|
|
||||||
User-agent: *
|
|
||||||
Allow: /
|
|
||||||
|
|
||||||
# Разрешаем основные страницы
|
|
||||||
Allow: /$
|
|
||||||
Allow: /index.html
|
|
||||||
|
|
||||||
# Запрещаем индексацию технических файлов
|
|
||||||
Disallow: /style.css
|
|
||||||
Disallow: /script.js
|
|
||||||
Disallow: /favicon.svg
|
|
||||||
Disallow: /.htaccess
|
|
||||||
Disallow: /README.md
|
|
||||||
|
|
||||||
# Запрещаем служебные пути
|
|
||||||
Disallow: /*.md$
|
|
||||||
Disallow: /*.txt$
|
|
||||||
Disallow: /*.xml$
|
|
||||||
|
|
||||||
# Индексация
|
|
||||||
Sitemap: https://films.tolchin.pro/sitemap.xml
|
|
||||||
Sitemap: https://films.tolchin.pro/sitemap-index.xml
|
|
||||||
|
|
||||||
# Clean параметры
|
|
||||||
Clean-param: ref /
|
|
||||||
|
|
||||||
# Ограничение индексации дубликатов
|
|
||||||
Noindex: /style.css
|
|
||||||
Noindex: /script.js
|
|
||||||
Noindex: /favicon.svg
|
|
||||||
@@ -9,7 +9,12 @@ const PROXIES = [
|
|||||||
'https://api.allorigins.win/raw?url=',
|
'https://api.allorigins.win/raw?url=',
|
||||||
'https://proxy.cors.sh/',
|
'https://proxy.cors.sh/',
|
||||||
'https://corsproxy.org/?',
|
'https://corsproxy.org/?',
|
||||||
'https://allorigins.win/raw?url='
|
'https://allorigins.win/raw?url=',
|
||||||
|
'https://api.codetabs.com/v1/proxy?quest=',
|
||||||
|
'https://thingproxy.freeboard.io/fetch/',
|
||||||
|
'https://cors-anywhere.herokuapp.com/',
|
||||||
|
'https://corsproxy.ca/',
|
||||||
|
'https://proxy.t vot.pw/',
|
||||||
];
|
];
|
||||||
|
|
||||||
// Кеш страниц фильмов и постеров
|
// Кеш страниц фильмов и постеров
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!--
|
|
||||||
Sitemap для изображений - заполняется автоматически при обновлении контента
|
|
||||||
https://developers.google.com/search/docs/advanced/sitemaps/image-sitemaps
|
|
||||||
-->
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
|
||||||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
|
||||||
|
|
||||||
<!-- Пример структуры (заполняется динамически) -->
|
|
||||||
<!--
|
|
||||||
<url>
|
|
||||||
<loc>https://films.tolchin.pro/</loc>
|
|
||||||
<image:image>
|
|
||||||
<image:loc>https://films.tolchin.pro/images/poster1.jpg</image:loc>
|
|
||||||
<image:title>Название фильма</image:title>
|
|
||||||
</image:image>
|
|
||||||
</url>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</urlset>
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
||||||
|
|
||||||
<!-- Основной sitemap -->
|
|
||||||
<sitemap>
|
|
||||||
<loc>https://films.tolchin.pro/sitemap.xml</loc>
|
|
||||||
<lastmod>2026-02-24</lastmod>
|
|
||||||
</sitemap>
|
|
||||||
|
|
||||||
<!-- Sitemap для изображений (когда постеры будут на своём домене) -->
|
|
||||||
<sitemap>
|
|
||||||
<loc>https://films.tolchin.pro/sitemap-images.xml</loc>
|
|
||||||
<lastmod>2026-02-24</lastmod>
|
|
||||||
</sitemap>
|
|
||||||
|
|
||||||
</sitemapindex>
|
|
||||||
25
sitemap.xml
25
sitemap.xml
@@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
||||||
xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
|
|
||||||
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
|
|
||||||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
|
|
||||||
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
|
||||||
|
|
||||||
<!-- Главная страница -->
|
|
||||||
<url>
|
|
||||||
<loc>https://films.tolchin.pro/</loc>
|
|
||||||
<changefreq>hourly</changefreq>
|
|
||||||
<priority>1.0</priority>
|
|
||||||
<lastmod>2026-02-24</lastmod>
|
|
||||||
</url>
|
|
||||||
|
|
||||||
<!-- Альтернативные языковые версии (если будут) -->
|
|
||||||
<url>
|
|
||||||
<loc>https://films.tolchin.pro/</loc>
|
|
||||||
<xhtml:link rel="alternate" hreflang="ru" href="https://films.tolchin.pro/"/>
|
|
||||||
<xhtml:link rel="alternate" hreflang="en" href="https://films.tolchin.pro/"/>
|
|
||||||
<xhtml:link rel="alternate" hreflang="x-default" href="https://films.tolchin.pro/"/>
|
|
||||||
</url>
|
|
||||||
|
|
||||||
</urlset>
|
|
||||||
Reference in New Issue
Block a user