File size: 1.63Kb
# Кодировка страниц по умолчанию
AddDefaultCharset utf-8
DirectoryIndex index.php
Options FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
# Статистика входящего трафа
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]*)?$ ?from_id=$1 [L,QSA]
# USER_RULES_BEGIN
# [DOWNLOADS MODULE]
# Скачать файл
RewriteRule ^download_file/(.*)?$ index.php?segment1=downloads&segment2=download_file&file=$1 [L,QSA]
# Листинг папок
RewriteRule ^downloads/([0-9]*)(/)?$ index.php?segment1=downloads&directory_id=$1 [L,QSA]
# Просмотр файла
RewriteRule ^downloads/view/([0-9]*)(/)?$ index.php?segment1=downloads&segment2=view_file&file_id=$1 [L,QSA]
# Скачивание jad файла
RewriteRule ^downloads/get_jad/([0-9]*).jad?$ index.php?segment1=downloads&segment2=get_jad&file_id=$1 [L,QSA]
# USER_RULES_END
# Основные контроллеры
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]*)([.a-z0-9]*)?$ index.php?segment1=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]*)/([a-z0-9_-]*)([.a-z0-9]*)?$ index.php?segment1=$1&segment2=$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]*)/([a-z0-9_-]*)/([a-z0-9_-]*)([.a-z0-9]*)?$ index.php?segment1=$1&segment2=$2&segment3=$3 [L,QSA]
</IfModule>
php_value error_reporting 7
php_value register_globals Off