Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
sineborod 12.11.2013 16:01
DirectoryIndex /html/blogs/blogs.html AddDefaultCharset utf-8 AddHandler parsed-html .html .htm .rss Action parsed-html /cgi-bin/parser3.cgi # gzip сжатие. <IfModule mod_deflate.c> # html, txt, css, js, json, xml, htc: AddOutputFilterByType DEFLATE text/html text/plain text/css application/json AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript AddOutputFilterByType DEFLATE text/xml application/xml text/x-component # веб-шрифты и svg: <FilesMatch "\.(ttf|otf|eot|svg)$" > SetOutputFilter DEFLATE </FilesMatch> </IfModule> <Files ~ "\.(p|cfg)$"> Order allow,deny Deny from all </Files> # 480 weeks <FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> # Header set Cache-Control "max-age=290304000, public" Header set Cache-Control "max-age=604800, public" </FilesMatch> # 2 DAYS <FilesMatch ".(xml|txt)$"> Header set Cache-Control "max-age=172800, public, must-revalidate" </FilesMatch> # 2 HOURS <FilesMatch ".(html|htm)$"> Header set Cache-Control "max-age=7200, must-revalidate" </FilesMatch> RewriteEngine on RewriteBase / Options +FollowSymlinks RewriteRule ^newsfeed.rss$ /news_feed.html [QSA,L] #RewriteCond %{HTTP_HOST} !^$ #RewriteCond %{HTTP_HOST} !^www\. [NC] #RewriteCond %{HTTP_HOST} (.+)$ #RewriteRule ^(.*) http://www.%1/$1 [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*[^/])$ $1/ [L,R=301] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/$ /html/pages.html?cat=$1&subcat=$2&page=$3 [QSA,L] #Отлавливаем старые записи RewriteRule ^(video|articles|news|anons)/(\d+)-(.*?)$ /html/forwardarticles.html?id=$2&cat=$1 [QSA,L] RewriteRule ^godmode/$ /scripts/godmode.html [QSA,L] RewriteRule ^outlink/$ /html/outlink.html [QSA,L] RewriteRule ^users/$ /html/users/listUsers.html [QSA,L] RewriteRule ^users/(\d+)/$ /html/users/userBlogs.html?user_id=$1 [QSA,L] RewriteRule ^users/([^/\.]+)/messages/$ /html/users/messages.html?owner=me [QSA,L] RewriteRule ^blog.feed/$ /blog_feed.html [QSA,L] RewriteRule ^news.feed/$ /news_feed.html [QSA,L] RewriteRule ^balashov/$ /html/balashov.html [QSA,L] #Новости RewriteRule ^news/$ /html/news/listNews.html [QSA,L] RewriteRule ^(news)/([^/\.]+)/$ /html/news/pageNews.html?name=$2 [QSA,L] #Блоги RewriteRule ^blogs/$ /html/blogs/blogs.html [QSA,L] RewriteRule ^blogs/post/$ /html/blogs/postBlog.html [QSA,L] RewriteRule ^blogs/edit/$ /html/blogs/editBlog.html [QSA,L] RewriteRule ^blogs/(new|week|day)/$ /html/blogs/blogs.html?filter=$1 [QSA,L] RewriteRule ^(blogs)/(\d+)/$ /html/blogs/getBlog.html?aid=$2 [QSA,L] RewriteRule ^(blogs)/([^/\.]+)/$ /html/blogs/getBlog.html?name=$2 [QSA,L] RewriteRule ^(video|articles)/page/(\d+)/$ $1/?page=$2 [L,R=301] RewriteRule ^(page)/(\d+)/$ /?page=$2 [L,R=301] RewriteRule ^(events)/([^/\.]+)/$ /html/getEvent.html?name=$2 [QSA,L] RewriteRule ^(video|articles)/sections/([^/\.]+)/$ /html/sections.html?name=$2 [QSA,L] RewriteRule ^(video|articles)/(\d+)/$ /html/getPost.html?pid=$2&category=$1 [QSA,L] RewriteRule ^(video|articles)/([^/\.]+)/$ /html/getPost.html?name=$2&category=$1 [QSA,L] RewriteRule ^(video|articles)/$ /html/posts.html?content_type=$1 [QSA,L] RewriteRule ^510/register/$ /html/510/register.html [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/$ /html/pages.html?cat=$1&subcat=$2&name=$3 [QSA,L] RewriteRule ^([^/\.]+)/([^/\.]+)/$ /html/pages.html?cat=$1&name=$2 [QSA,L] RewriteRule ^([^/\.]+)/$ /html/pages.html?name=$1 [QSA,L]