Просмотр файла siwap.ru/.htaccess

Размер файла: 2.99Kb
# Author:: Laravel
# Name:: Евгений Николаевич
# Vk:: vk.com/zheka_9l

AddDefaultCharset UTF-8
RewriteEngine On
DirectoryIndex index.php

ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 500 /error.php?code=500

# Системное
RewriteRule ^adminer/?$ adminer.php [L,QSA]

# Всё что связано с авторизацией
RewriteRule ^authorization/?$ apps/login/authorization.php [L,QSA]
RewriteRule ^registration/?$ apps/login/registration.php [L,QSA]
RewriteRule ^forgot/?$ apps/login/forgot.php [L,QSA]
RewriteRule ^exit/?$ apps/login/exit.php [L,QSA]

# Пользовательское
RewriteRule ^main/?$ apps/user/index.php [L,QSA]

# Чат
RewriteRule ^chat/?$ apps/chat/index.php [L,QSA]

# Почта
RewriteRule ^mail/?$ apps/mail/index.php [L,QSA]
RewriteRule ^mail/new_chat?$ apps/mail/newChat.php [L,QSA]
RewriteRule ^mail/id([0-9]*)?$ apps/mail/dialog.php?id=$1 [L,QSA]
RewriteRule ^mail/new/id([0-9]*)?$ apps/mail/newDialog.php?id=$1 [L,QSA]

# Настройки
RewriteRule ^settings/?$ apps/user/settings.php [L,QSA]
RewriteRule ^settings/([a-zA-Z0-9_-]*)?$ apps/user/settings.php?act=$1 [L,QSA]

# Профиль 
RewriteRule ^profile/edit?$ apps/profile/edit.php [L,QSA]

# Пользователи
RewriteRule ^users/?$ apps/user/list.php [L,QSA]
RewriteRule ^id([0-9]*)/?$ apps/user/profile.php?id=$1 [L,QSA]

# Новости
RewriteRule ^news/?$ apps/news/index.php [L,QSA]
RewriteRule ^news/new?$ apps/news/new.php [L,QSA]
RewriteRule ^news/wall([0-9]*)?$ apps/news/wall.php?id=$1 [L,QSA]

# Альбомы
RewriteRule ^album/id([0-9]*)/?$ apps/photos/album.php?id=$1 [L,QSA]
RewriteRule ^albums/?$ apps/photos/index.php [L,QSA]
RewriteRule ^albums/id([0-9]*)/?$ apps/photos/index.php?id=$1 [L,QSA]
RewriteRule ^albums/new?$ apps/photos/new.php [L,QSA]
RewriteRule ^album/id([0-9]*)/edit?$ apps/photos/edit_album.php?id=$1 [L,QSA]

# Друзья
RewriteRule ^friends/?$ apps/friends/index.php [L,QSA]
RewriteRule ^friends/add/id([0-9]*)?$ apps/friends/add.php?id=$1 [L,QSA]

# Админка
RewriteRule ^admin/?$ apps/admin/index.php [L,QSA]
## Пользователи 
RewriteRule ^admin/users/?$ apps/admin/users/index.php [L,QSA]
## Подарки
RewriteRule ^admin/gifts?$ apps/admin/gifts.php [L,QSA]
RewriteRule ^admin/gifts/cats?$ apps/admin/gifts_cats.php [L,QSA]
RewriteRule ^admin/gifts/cat([0-9]*)?$ apps/admin/gifts_category.php?id=$1 [L,QSA]

# Worldkassa
RewriteRule ^pay/?$ apps/wk/index.php [L,QSA]
RewriteRule ^pay/result?$ apps/wk/result.php [L,QSA]
RewriteRule ^pay/error?$ apps/wk/error.php [L,QSA]
RewriteRule ^pay/success?$ apps/wk/success.php [L,QSA]

# аудио
RewriteRule ^audios/?$ apps/audio/index.php [L,QSA]
RewriteRule ^audios/user([0-9]*)/?$ apps/audio/index.php?id=$1 [L,QSA]

# оповещения
RewriteRule ^notifications/?$ apps/notifications/index.php [L,QSA]