<Limit GET POST> |
Order allow,deny |
Allow from all |
</Limit> |
|
|
php_flag register_globals Off |
|
|
php_flag display_errors Off |
php_value error_reporting 0 |
php_flag log_errors Off |
|
|
|
# Компрессия |
php_flag zlib.output_compression On |
# Степень компрессии |
php_value zlib.output_compression_level 5 |
|
|
|
DirectoryIndex index.php |
|
RewriteEngine On |
|
RewriteRule ^comments.xml$ engine/comments.php [L] |
RewriteRule ^all-votes(/?)+$ index.php?do=all-votes [L] |
RewriteRule ^all-votes/site(/?)+$ index.php?do=all-votes&only=on_site [L] |
RewriteRule ^all-votes/site/([0-9]+)(/?)+$ index.php?do=all-votes&only=on_site&page=$1 [L] |
|
RewriteRule ^faq(/?)+$ index.php?do=faq [L] |
|
# Модуль автоуправления новостями |
RewriteRule ^allnews(/?)+$ index.php?do=allnews [L] |
RewriteRule ^allnews/([^/]*)(/?)+$ index.php?do=allnews&category=$1 [L] |
RewriteRule ^allnews/([^/]*)/([^/]*)(/?)+$ index.php?do=allnews&category=$2 [L] |
RewriteRule ^allnews/([^/]*)/sort/news_read(/?)+$ index.php?do=allnews&category=$1&sort=news_read [L] |
RewriteRule ^allnews/([^/]*)/sort/date(/?)+$ index.php?do=allnews&category=$1&sort=date [L] |
RewriteRule ^allnews/([^/]*)/sort/rating(/?)+$ index.php?do=allnews&category=$1&sort=rating [L] |
RewriteRule ^allnews/([^/]*)/sort/comm_num/(/?)+$ index.php?do=allnews&category=$1&sort=comm_num [L] |
RewriteRule ^allnews/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=allnews&category=$1&page=$2 [L] |
RewriteRule ^allnews/([^/]*)/sort/news_read/page/([0-9]+)(/?)+$ index.php?do=allnews&category=$1&sort=news_read&page=$2 [L] |
RewriteRule ^allnews/([^/]*)/sort/date/page/([0-9]+)(/?)+$ index.php?do=allnews&category=$1&sort=date&page=$2 [L] |
RewriteRule ^allnews/([^/]*)/sort/rating/page/([0-9]+)(/?)+$ index.php?do=allnews&category=$1&sort=rating&page=$2 [L] |
RewriteRule ^allnews/([^/]*)/sort/comm_num/page/([0-9]+)(/?)+$ index.php?do=allnews&category=$1&sort=comm_num&page=$2 [L] |
RewriteRule ^allnews/([^/]*)/author/([^/]*)(/?)+$ index.php?do=allnews&category=$1&author=$2 [L] |
RewriteRule ^allnews/([^/]*)/author/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=allnews&category=$1&author=$2&page=$3 [L] |
|
# Репутация |
RewriteRule ^user/reputation/([^/]*)/(/?)+$ index.php?do=reputation&user=$1 [L] |
RewriteRule ^user/reputation/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=reputation&user=$1&page=$2 [L] |
RewriteRule ^topusers\.html$ /?do=topusers [L] |
|
# Редиректы |
RewriteRule ^page/(.*)$ index.php?cstart=$1 [L] |
|
RewriteRule ^yasitemap(/?)+$ index.php?do=yasitemap |
RewriteRule ^yasitemap/page/(.*)/ index.php?cstart=$1&do=yasitemap |
# Partner module |
RewriteRule ^partner(/?)+$ /?do=partner |
# Бан лист |
RewriteRule ^banlist.html$ index.php?do=banlist [L] |
# Модуль Гостевой Книги |
RewriteRule ^guestbook(/?)+$ index.php?do=guestbook [L] |
RewriteRule ^guestbook/page/([0-9]+)(/?)+$ index.php?do=guestbook&cstart=$1 [L] |
RewriteRule ^guestbook/proceed/com_update.html$ index.php?do=guestbook&proceed=com_update [L] |
RewriteRule ^guestbook/action/del.html$ index.php?do=guestbook&action=del [L] |
RewriteRule ^guestbook/action/edit/([0-9]+).html$ index.php?do=guestbook&action=edit&id=$1 [L] |
RewriteRule ^guestbook/action/del/([0-9]+)(/?)+$ index.php?do=guestbook&action=del&id=$1 [L] |
# Карта сайта пользователей |
RewriteRule ^yausermap(/?)+$ index.php?do=yausermap |
RewriteRule ^yausermap/page/(.*)/ index.php?cstart=$1&do=yausermap |
RewriteRule ^command.html index.php?do=command [L] |
# Карта категорий |
RewriteRule ^catmap/([0-9]+)(/?)+$ /index.php?do=cat_map&cat=$1 [L] |
RewriteRule ^catmap/([0-9]+)/page/([0-9]+) /index.php?do=cat_map&cat=$1&page=$2 [L] |
# Сам пост |
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6 [L] |
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 [L] |
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).html(/?)+$ engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 [L] |
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4 [L] |
|
RewriteRule ^([^.]+)/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$4&news_page=$2&cstart=$3 [L] |
RewriteRule ^([^.]+)/page,([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$3&news_page=$2 [L] |
RewriteRule ^([^.]+)/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$ engine/print.php?news_page=$2&newsid=$3 [L] |
RewriteRule ^([^.]+)/([0-9]+)-(.*).html(/?)+$ index.php?newsid=$2 [L] |
|
RewriteRule ^page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$3&news_page=$1&cstart=$2 [L] |
RewriteRule ^page,([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$2&news_page=$1 [L] |
RewriteRule ^print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$ engine/print.php?news_page=$1&newsid=$2 [L] |
RewriteRule ^([0-9]+)-(.*).html(/?)+$ index.php?newsid=$1 [L] |
|
# За день |
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$ index.php?year=$1&month=$2&day=$3 [L] |
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$ index.php?year=$1&month=$2&day=$3&cstart=$4 [L] |
# За весь месяц |
RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ index.php?year=$1&month=$2 [L] |
RewriteRule ^([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$ index.php?year=$1&month=$2&cstart=$3 [L] |
# Вывод за весь год |
RewriteRule ^([0-9]{4})(/?)+$ index.php?year=$1 [L] |
RewriteRule ^([0-9]{4})/page/([0-9]+)(/?)+$ index.php?year=$1&cstart=$2 [L] |
# вывод отдельному тегу |
RewriteRule ^tags/([^/]*)(/?)+$ index.php?do=tags&tag=$1 [L] |
RewriteRule ^tags/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=tags&tag=$1&cstart=$2 [L] |
# вывод для отдельного юзера |
RewriteRule ^user/([^/]*)/rss.xml$ engine/rss.php?subaction=allnews&user=$1 [L] |
RewriteRule ^user/([^/]*)(/?)+$ index.php?subaction=userinfo&user=$1 [L] |
RewriteRule ^user/([^/]*)/page/([0-9]+)(/?)+$ index.php?subaction=userinfo&user=$1&cstart=$2 [L] |
RewriteRule ^user/([^/]*)/news(/?)+$ index.php?subaction=allnews&user=$1 [L] |
RewriteRule ^user/([^/]*)/news/page/([0-9]+)(/?)+$ index.php?subaction=allnews&user=$1&cstart=$2 [L] |
RewriteRule ^user/([^/]*)/news/rss.xml(/?)+$ engine/rss.php?subaction=allnews&user=$1 [L] |
# вывод всех последних новостей |
RewriteRule ^lastnews/(/?)+$ index.php?do=lastnews [L] |
RewriteRule ^lastnews/page/([0-9]+)(/?)+$ index.php?do=lastnews&cstart=$1 [L] |
# вывод в виде каталога |
RewriteRule ^catalog/([^/]*)(/?)+$ index.php?catalog=$1 [L] |
RewriteRule ^catalog/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$2 [L] |
# вывод непрочитанных статей |
RewriteRule ^newposts(/?)+$ index.php?subaction=newposts [L] |
RewriteRule ^newposts/page/([0-9]+)(/?)+$ index.php?subaction=newposts&cstart=$1 [L] |
# Статистические страницы |
RewriteRule ^static/(.*).html(/?)+$ index.php?do=static&page=$1 [L] |
# вывод избранных статей |
RewriteRule ^favorites(/?)+$ index.php?do=favorites [L] |
RewriteRule ^favorites/page/([0-9]+)(/?)+$ index.php?do=favorites&cstart=$1 [L] |
|
RewriteRule ^rules.html$ index.php?do=rules [L] |
RewriteRule ^statistics.html$ index.php?do=stats [L] |
RewriteRule ^feedback.html$ index.php?do=feedback [L] |
RewriteRule ^addnews.html$ index.php?do=addnews [L] |
RewriteRule ^rss.xml$ engine/rss.php [L] |
RewriteRule ^sitemap.xml$ uploads/sitemap.xml [L] |
|
RewriteCond %{REQUEST_FILENAME} !-d |
RewriteRule ^([^.]+)/page/([0-9]+)(/?)+$ index.php?do=cat&category=$1&cstart=$2 [L] |
RewriteRule ^([^.]+)/?$ index.php?do=cat&category=$1 [L] |
RewriteCond %{REQUEST_FILENAME} !-f |
RewriteRule ^([^<]+)/rss.xml$ engine/rss.php?do=cat&category=$1 [L] |
RewriteRule ^page,([0-9]+),([^/]+).html$ index.php?do=static&page=$2&news_page=$1 [L] |
RewriteRule ^print:([^/]+).html$ engine/print.php?do=static&page=$1 [L] |
RewriteRule ^([^/]+).html$ index.php?do=static&page=$1 [L] |