View file .htaccess

File size: 7.65Kb
ErrorDocument 400 /?act=400
ErrorDocument 401 /?act=401
ErrorDocument 402 /?act=402
ErrorDocument 403 /?act=403
ErrorDocument 404 /?act=404
ErrorDocument 500 /?act=500
ErrorDocument 502 /?act=502
AddDefaultCharset UTF-8
RewriteEngine On

RewriteRule ^profile([a-z0-9]+)$ /moduls/profile.php?id=$1
rewriterule ^profile([0-9]+)/friends$ /moduls/profile.php?act=friends&id=$1
rewriterule ^profile([0-9]+)/friends/page=([a-z0-9]+)$ /moduls/profile.php?act=friends&id=$1&page=$2
rewriterule ^profile([0-9]+)/add_friend$ /moduls/friends.php?act=add&id=$1
rewriterule ^profile([0-9]+)/del_friend$ /moduls/friends.php?act=del&id=$1
rewriterule ^profile([0-9]+)/ank$ /moduls/profile.php?act=ank&id=$1
rewriterule ^profile([0-9]+)/community$ /moduls/profile.php?act=community&id=$1
rewriterule ^profile([0-9]+)/community/page=([a-z0-9]+)$ /moduls/profile.php?act=community&id=$1&page=$2

RewriteRule ^admin$ /moduls/panelka.php

rewriterule ^chat$ /moduls/chat.php
rewriterule ^chat/([0-9]+)$ /moduls/chat.php?act=room&id=$1
rewriterule ^chat/([0-9]+)/page=([a-z0-9]+)$ /moduls/chat.php?act=room&id=$1&page=$2
rewriterule ^chat/([0-9]+)/reply([0-9]+)$ /moduls/chat.php?act=room&id=$1&reply=$2

rewriterule ^chat1$ /moduls/chat.php
rewriterule ^chat1/([0-9]+)$ /moduls/chat.php?id=$1
rewriterule ^chat1/([0-9]+)/page=([a-z0-9]+)$ /moduls/chat.php?id=$1&page=$2
rewriterule ^chat1/([0-9]+)/reply([0-9]+)$ /moduls/chat.php?id=$1&reply=$2
rewriterule ^chat1/page=([a-z0-9]+)/reply([0-9]+)$ /moduls/chat.php?page=$1&reply=$2
rewriterule ^obmen$ /moduls/obmen.php
rewriterule ^obmen/([0-9]+)$ /moduls/obmen.php?act=cat&id=$1
rewriterule ^obmen/([0-9]+)/page=([a-z0-9]+)$ /moduls/obmen.php?act=cat&id=$1&page=$2
rewriterule ^obmen/add$ /moduls/obmen.php?act=add
rewriterule ^obmen/file([0-9]+)$ /moduls/obmen.php?act=file&id=$1
rewriterule ^obmen/down([0-9]+)$ /moduls/obmen.php?act=down&id=$1
rewriterule ^news$ /moduls/news.php
rewriterule ^news/page=([a-z0-9]+)$ /moduls/news.php?page=$1
rewriterule ^news([0-9]+)$ /moduls/news.php?id=$1
rewriterule ^news([0-9]+)/page=([a-z0-9]+)$ /moduls/news.php?id=$1&page=$2
rewriterule ^dl$ /moduls/downloads.php
rewriterule ^dl/cat([0-9]+)$ /moduls/downloads.php?act=cat&id=$1
rewriterule ^dl/cat([0-9]+)/page=([a-z0-9]+)$ /moduls/downloads.php?act=cat&id=$1&page=$2
rewriterule ^dl/podcat([0-9]+)$ /moduls/downloads.php?act=podcat&id=$1
rewriterule ^dl/podcat([0-9]+)/page=([a-z0-9]+)$ /moduls/downloads.php?act=podcat&id=$1&page=$2
rewriterule ^dl/down([0-9]+)$ /moduls/downloads.php?act=down&id=$1
rewriterule ^dl/file([0-9]+)$ /moduls/downloads.php?act=file&id=$1
rewriterule ^dl/top$ /dl?act=top
rewriterule ^forum$ /moduls/forum.php
rewriterule ^forum/([0-9]+)$ /moduls/forum.php?act=cat&id=$1
rewriterule ^forum/cat([0-9]+)$ /moduls/forum.php?act=forum&id=$1
rewriterule ^forum/cat([0-9]+)/page=([a-z0-9]+)$ /moduls/forum.php?act=forum&id=$1&page=$2
rewriterule ^forum/theme([0-9]+)$ /moduls/forum.php?act=theme&id=$1
rewriterule ^forum/theme([0-9]+)/page=([a-z0-9]+)$ /moduls/forum.php?act=theme&id=$1&page=$2
rewriterule ^forum/theme([0-9]+)/reply([0-9]+)$ /moduls/forum.php?act=theme&id=$1&reply=$2
rewriterule ^forum/theme([0-9]+)/page=([a-z0-9]+)/reply([0-9]+)$ /moduls/forum.php?act=theme&id=$1&page=$2&reply=$3
rewriterule ^forum/add_theme([0-9]+)$ /moduls/forum.php?act=add_theme&id=$1
rewriterule ^forum/last_thread$ /moduls/forum.php?act=last_thread
rewriterule ^forum/last_post$ /moduls/forum.php?act=last_post

rewriterule ^dialog$ /moduls/dialog.php
rewriterule ^dialog/page=([a-z0-9]+)$ /moduls/dialog.php?page=$1
rewriterule ^dialog/([0-9]+)$ /moduls/dialog.php?id=$1
rewriterule ^dialog/([0-9]+)/page=([a-z0-9]+)$ /moduls/dialog.php?id=$1&page=$2
rewriterule ^dialog/([0-9]+)/ignor$ /moduls/dialog.php?act=ignor&id=$1

rewriterule ^notice$ /moduls/notice.php
rewriterule ^notice/page=([a-z0-9]+)$ /moduls/notice.php?page=$1

rewriterule ^info$ /moduls/info.php
rewriterule ^info/rules$ /moduls/info.php?act=rules
rewriterule ^info/faq$ /moduls/info.php?act=faq
rewriterule ^info/bb$ /moduls/info.php?act=bb_code
rewriterule ^info/smiles$ /moduls/info.php?act=smiles
rewriterule ^info/stat$ /moduls/info.php?act=stat
rewriterule ^info/administration$ /moduls/info.php?act=adm
rewriterule ^info/ball$ /moduls/info.php?act=ball
rewriterule ^info/block$ /moduls/info.php?act=banned

rewriterule ^my/edit/profile$ /moduls/profile.php?act=edit
rewriterule ^my/edit/avatar$ /moduls/profile.php?act=avatar
rewriterule ^my/edit/status$ /moduls/profile.php?act=status

rewriterule ^shop$ /moduls/shop.php
rewriterule ^shop/login$ /shop?act=login
rewriterule ^shop/unban$ /shop?act=unban
rewriterule ^shop/rekl$ /shop?act=rekl

rewriterule ^online$ /moduls/online.php
rewriterule ^online/page=([a-z0-9]+)$ /moduls/online.php?page=$1

rewriterule ^userslist$ /moduls/userlist.php
rewriterule ^userslist/adm$ /moduls/userlist.php?act=adm
rewriterule ^userslist/page=([a-z0-9]+)$ /moduls/userlist.php?page=$1
rewriterule ^userslist/online$ /moduls/userlist.php?act=online
rewriterule ^userslist/online/page=([a-z0-9]+)$ /moduls/userlist.php?act=online&page=$1

rewriterule ^friends$ /moduls/friends.php
rewriterule ^friends/in$ /moduls/friends.php?act=in
rewriterule ^friends/in/page=([a-z0-9]+)$ /moduls/friends.php?act=in&page=$1
rewriterule ^friends/out$ /moduls/friends.php?act=out
rewriterule ^friends/out/page=([a-z0-9]+)$ /moduls/friends.php?act=out&page=$1
rewriterule ^friends/list$ /moduls/friends.php?act=my
rewriterule ^friends/list/page=([a-z0-9]+)$ /moduls/friends.php?act=list&page=$1
rewriterule ^friends/pod/([0-9]+)$ /moduls/friends.php?act=pod&id=$1
rewriterule ^friends/del/([0-9]+)$ /moduls/friends.php?act=del&id=$1

rewriterule ^community$ /moduls/groups.php
rewriterule ^community/page=([a-z0-9]+)$ /moduls/groups.php?page=$1
rewriterule ^community/([0-9]+)$ /moduls/groups.php?act=group&id=$1
rewriterule ^community/([0-9]+)/enter$ /moduls/groups.php?act=enter&id=$1
rewriterule ^community/([0-9]+)/invite$ /moduls/groups.php?act=invite&id=$1
rewriterule ^community/([0-9]+)/edit$ /moduls/groups.php?act=edit&id=$1
rewriterule ^community/([0-9]+)/delete$ /moduls/groups.php?act=del&id=$1
rewriterule ^community/([0-9]+)/delete/yes$ /moduls/groups.php?act=del&id=$1&yes=1
rewriterule ^community/([0-9]+)/avatar$ /moduls/groups.php?act=avatar&id=$1
rewriterule ^community/([0-9]+)/users$ /moduls/groups.php?act=users&id=$1
rewriterule ^community/([0-9]+)/users/page=([a-z0-9]+)$ /moduls/groups.php?act=users&id=$1&page=$2
rewriterule ^community/([0-9]+)/reply$ /moduls/groups.php?act=reply&id=$1
rewriterule ^community/([0-9]+)/page=([a-z0-9]+)$ /moduls/groups.php?act=group&id=$1&page=$2
rewriterule ^community/create$ /moduls/groups.php?act=create

rewriterule ^my/edit/city$ /moduls/city.php
rewriterule ^my/edit/city/page=([a-z0-9]+)$ /moduls/city.php?page=$1
rewriterule ^my/edit/city/([0-9]+)$ /moduls/city.php?act=country&id=$1
rewriterule ^my/edit/city/([0-9]+)/page=([a-z0-9]+)$ /moduls/city.php?act=country&id=$1&page=$2
rewriterule ^my/edit/city/region([0-9]+)$ /moduls/city.php?act=region&id=$1
rewriterule ^my/edit/city/region([0-9]+)/page=([a-z0-9]+)$ /moduls/city.php?act=region&id=$1&page=$2
rewriterule ^my/edit/city/city([0-9]+)$ /moduls/city.php?act=city&id=$1
rewriterule ^my/edit/city/search$ /moduls/city.php?act=search

rewriterule ^go_to_([0-9]+)$ /moduls/out.php?id=$1

rewriterule ^remied$ /moduls/remied.php
rewriterule ^exit$ /moduls/exit.php
rewriterule ^login$ /moduls/enter.php
rewriterule ^enter$ /moduls/enter.php
rewriterule ^registration$ /moduls/rega.php
rewriterule ^pass$ /moduls/pass.php
rewriterule ^about$ /moduls/about.php
rewriterule ^go$ /moduls/go.php
rewriterule ^style$ /moduls/style.php