Файл: .htaccess
Строк: 100
AddDefaultCharset utf-8
DirectoryIndex index.php
php_value
mbstring.internal_encoding UTF-8
ErrorDocument 404 /index.php
php_flag
display_errors on
php_flag display_startup_errors on
RewriteEngine On
###############
## РАЗНОЕ ##
###############
RewriteRule
^reg/?$ moduls/reg.php [L,QSA]
RewriteRule ^auth/?$ moduls/auth.php
[L,QSA]
RewriteRule ^users/?$ user/users.php [L,QSA]
RewriteRule
^kabinet/?$ user/kab.php [L,QSA]
RewriteRule ^journal/?$ user/journal.php
[L,QSA]
RewriteRule ^log_auth/?$ user/log_auth.php [L,QSA]
RewriteRule
^exit/?$ moduls/exit.php [L,QSA]
###############
## НОВОСТИ
##
###############
RewriteRule ^news_([0-9]*)?$
moduls/news/news_info.php?id=$1 [L,QSA]
RewriteRule ^komm_news_([0-9]*)?$
moduls/news/news_komm.php?id=$1 [L,QSA]
RewriteRule
^komm_news_otv([0-9]*)?$ moduls/news/news_komm_otv.php?id=$1
[L,QSA]
RewriteRule ^komm_news_edit([0-9]*)?$
moduls/news/news_edit_komm.php?id=$1 [L,QSA]
RewriteRule ^news?$
moduls/news/news.php [L,QSA]
RewriteRule ^news_edit([0-9]*)?$
moduls/news/news_edit.php?id=$1 [L,QSA]
RewriteRule ^news_del([0-9]*)?$
moduls/news/news_del.php?id=$1 [L,QSA]
###########
## ЧАТ
##
###########
RewriteRule ^chat_rooms?$ moduls/chat/index.php
[L,QSA]
RewriteRule ^del_chat([0-9]*)?$ moduls/chat/chat_del.php?id=$1
[L,QSA]
RewriteRule ^chat_otv([0-9]*)?$ moduls/chat/chat_otv.php?id=$1
[L,QSA]
RewriteRule ^edit_room([0-9]*)?$ moduls/chat/room_edit.php?id=$1
[L,QSA]
RewriteRule ^edit_chat([0-9]*)?$ moduls/chat/chat_edit.php?id=$1
[L,QSA]
RewriteRule ^chat([0-9]*)?$ moduls/chat/chat.php?id=$1
[L,QSA]
RewriteRule ^del_room([0-9]*)?$ moduls/chat/room_del.php?id=$1
[L,QSA]
###############
## АДМИНКА
##
###############
RewriteRule ^admin?$ admin/index.php
[L,QSA]
RewriteRule ^admin_settings?$ admin/settings.php
[L,QSA]
RewriteRule ^add_news?$ admin/add_news.php [L,QSA]
RewriteRule
^add_obmen_raz?$ admin/add_obmen_raz.php [L,QSA]
RewriteRule ^add_dl_raz?$
admin/add_dl_raz.php [L,QSA]
RewriteRule ^add_room?$ admin/add_room.php
[L,QSA]
RewriteRule ^add_journal?$ admin/add_journal.php
[L,QSA]
################
## ЗАГРУЗКИ
##
################
RewriteRule ^dl?$ moduls/dl/index.php
[L,QSA]
RewriteRule ^komm_dl_otv([0-9]*)?$ moduls/dl/dl_komm_otv.php?id=$1
[L,QSA]
RewriteRule ^dl_raz_del([0-9]*)?$ moduls/dl/dl_raz_del.php?id=$1
[L,QSA]
RewriteRule ^dl_raz_edit([0-9]*)?$ moduls/dl/dl_raz_edit.php?id=$1
[L,QSA]
RewriteRule ^dl_download([0-9]*)?$ moduls/dl/dl_down.php?id=$1
[L,QSA]
RewriteRule ^dl_komm([0-9]*)?$ moduls/dl/dl_komm.php?id=$1
[L,QSA]
RewriteRule ^dl_files([0-9]*)?$ moduls/dl/dl_files.php?id=$1
[L,QSA]
RewriteRule ^komm_dl_edit([0-9]*)?$
moduls/dl/dl_edit_komm.php?id=$1 [L,QSA]
RewriteRule ^dl_add_file([0-9]*)?$
moduls/dl/dl_add_files.php?id=$1 [L,QSA]
RewriteRule ^dl_file([0-9]*)?$
moduls/dl/dl_file.php?id=$1 [L,QSA]
RewriteRule ^dl_file_del([0-9]*)?$
moduls/dl/dl_file_del.php?id=$1 [L,QSA]
RewriteRule ^dl_file_edit([0-9]*)?$
moduls/dl/dl_file_edit.php?id=$1 [L,QSA]
#############
## ЮЗЕРЫ
##
#############
RewriteRule ^user_([0-9]*)?$ user/profile.php?id=$1
[L,QSA]
################
## Обменник
##
################
RewriteRule ^obmen?$ moduls/obmen/index.php
[L,QSA]
RewriteRule ^obmen_raz_edit([0-9]*)?$
moduls/obmen/obmen_raz_edit.php?id=$1 [L,QSA]
RewriteRule
^obmen_raz_del([0-9]*)?$ moduls/obmen/obmen_raz_del.php?id=$1
[L,QSA]
RewriteRule ^obmen_files([0-9]*)?$
moduls/obmen/obmen_files.php?id=$1 [L,QSA]
RewriteRule
^obmen_add_file([0-9]*)?$ moduls/obmen/obmen_add_files.php?id=$1
[L,QSA]
RewriteRule ^obmen_file([0-9]*)?$ moduls/obmen/obmen_file.php?id=$1
[L,QSA]
RewriteRule ^obmen_download([0-9]*)?$
moduls/obmen/obmen_down.php?id=$1 [L,QSA]
RewriteRule
^obmen_file_edit([0-9]*)?$ moduls/obmen/obmen_file_edit.php?id=$1
[L,QSA]
RewriteRule ^obmen_file_del([0-9]*)?$
moduls/obmen/obmen_file_del.php?id=$1 [L,QSA]
RewriteRule
^obmen_komm([0-9]*)?$ moduls/obmen/obmen_komm.php?id=$1 [L,QSA]
RewriteRule
^komm_obmen_otv([0-9]*)?$ moduls/obmen/obmen_komm_otv.php?id=$1
[L,QSA]
RewriteRule ^komm_obmen_edit([0-9]*)?$
moduls/obmen/obmen_edit_komm.php?id=$1 [L,QSA]