ErrorDocument 404 /error.php


RewriteEngine On
###Кабинет###
RewriteRule ^my/billing?$ /us/billing/index.php [L,QSA]
RewriteRule ^my/billing/wmr?$ /us/billing/index.php?act=wmr [L,QSA]
RewriteRule ^my/?$ /us/my/index.php [L,QSA]
RewriteRule ^my/ava?$ /us/my/ava.php [L,QSA]
RewriteRule ^my/icon?$ /us/my/icon.php [L,QSA]
RewriteRule ^my/nick?$ /us/my/nick.php [L,QSA]
RewriteRule ^my/ncol?$ /us/my/ncol.php [L,QSA]
RewriteRule ^my/stat?$ /us/my/stat.php [L,QSA]
RewriteRule ^my/settings$ /us/my/settings.php [L,QSA]
RewriteRule ^my/site$ /us/my/site.php [L,QSA]
RewriteRule ^lenta/?$ /us/my/lenta.php [L,QSA]  
RewriteRule ^lenta/dellenta/?$ /us/my/lenta.php?act=dellenta [L,QSA] 
RewriteRule ^lenta/dellentaall/?$ /us/my/lenta.php?act=dellentaall [L,QSA]
RewriteRule ^msg([0-9]*)/?$ /mail/index.php?id=$1 [L,QSA]
RewriteRule ^exit$ /index.php?act=exit [L,QSA]

###Юзеры###
RewriteRule ^us/nick([0-9]*)/?$ /us/my/hnick.php?id=$1 [L,QSA]
RewriteRule ^us/ban([0-9]*)/?$ /us/my/ban.php?id=$1 [L,QSA]
RewriteRule ^us([0-9]*)/?$ /us/us.php?id=$1 [L,QSA]
RewriteRule ^us([0-9]*)/sub?$ /us/my/sub.php?id=$1 [L,QSA]
RewriteRule ^us([0-9]*)/otzivi?$ /us/my/thanks.php?id=$1 [L,QSA]
RewriteRule ^us/otzivdel([0-9]*)/?$ /us/my/thanks.php?act=del&id=$1 [L,QSA]
RewriteRule ^us([0-9]*)/otziv/?$ /us/my/thanks.php?act=thanks&id=$1 [L,QSA]

RewriteRule ^users$ /us/users.php [L,QSA]
RewriteRule ^online$ /us/online.php [L,QSA]
RewriteRule ^admins$ /us/adm.php [L,QSA]
RewriteRule ^search$ /us/search.php [L,QSA]
RewriteRule ^us/auth$ /auth.php [L,QSA]
RewriteRule ^us/reg$ /reg.php [L,QSA]
RewriteRule ^us/nick([0-9]*)/?$ /us/my/hnick.php?id=$1 [L,QSA]

####news###
RewriteRule ^news/comm([0-9]*)/?$ /news/comm.php?id=$1 [L,QSA]
RewriteRule ^news/otv([0-9]*)/?$ /news/comm.php?act=otvet&id=$1 [L,QSA]
RewriteRule ^news/add?$ /news/index.php?act=add [L,QSA]
RewriteRule ^news/deln([0-9]*)/?$ /news/index.php?act=deln&id=$1 [L,QSA]
RewriteRule ^news/comm/ed([0-9]*)/?$ /news/comm.php?act=ed&id=$1 [L,QSA]
RewriteRule ^news/comm/del([0-9]*)/?$ /news/comm.php?act=del&id=$1 [L,QSA]

###forum###
RewriteRule ^fo/cat([0-9]*)/?$ /fo/category.php?id=$1 [L,QSA]
RewriteRule ^fo/razdel([0-9]*)/?$ /fo/razdel.php?id=$1 [L,QSA]
RewriteRule ^fo/tema([0-9]*)/?$ /fo/tema.php?id=$1 [L,QSA]
RewriteRule ^fo/nrazdel?$ /fo/forum/razdel.php [L,QSA]
RewriteRule ^fo/ncat([0-9]*)/?$ /fo/forum/ncat.php?id=$1 [L,QSA]
RewriteRule ^fo/ts$ /fo/index.php?act=ts [L,QSA]
RewriteRule ^fo/tem$ /fo/forum/tempost.php?act=tem [L,QSA]
RewriteRule ^fo/post$ /fo/forum/tempost.php?act=post [L,QSA]
RewriteRule ^fo/postus([0-9]*)/?$ /fo/forum/my.php?act=post&id=$1 [L,QSA]
RewriteRule ^fo/edraz([0-9]*)/?$ /fo/index.php?act=edraz&id=$1 [L,QSA]
RewriteRule ^fo/delraz([0-9]*)/?$ /fo/index.php?act=delraz&id=$1 [L,QSA]
RewriteRule ^fo/edcat([0-9]*)/?$ /fo/index.php?act=edcat&id=$1 [L,QSA]
RewriteRule ^fo/delcat([0-9]*)/?$ /fo/index.php?act=delcat&id=$1 [L,QSA]
RewriteRule ^fo/temus([0-9]*)/?$ /fo/forum/my.php?act=tem&id=$1 [L,QSA]
RewriteRule ^fo/nt([0-9]*)/?$ /fo/forum/tema.php?id=$1 [L,QSA]
RewriteRule ^fo/delpost([0-9]*)/?$ /fo/forum/tems.php?act=delpost&id=$1 [L,QSA]
RewriteRule ^fo/whos([0-9]*)/?$ /fo/forum/tems.php?act=whos&id=$1 [L,QSA]
RewriteRule ^fo/who([0-9]*)/?$ /fo/forum/tems.php?act=who&id=$1 [L,QSA]
RewriteRule ^fo/edpost([0-9]*)/?$ /fo/forum/tems.php?act=edpost&id=$1 [L,QSA]
RewriteRule ^fo/deltem([0-9]*)/?$ /fo/forum/tems.php?act=deltem&id=$1 [L,QSA]
RewriteRule ^fo/nametem([0-9]*)/?$ /fo/forum/tems.php?act=nametem&id=$1 [L,QSA]
RewriteRule ^fo/close([0-9]*)/?$ /fo/forum/tems.php?act=close&id=$1 [L,QSA]
RewriteRule ^fo/open([0-9]*)/?$ /fo/forum/tems.php?act=open&id=$1 [L,QSA]
RewriteRule ^fo/otvet([0-9]*)/?$ /fo/forum/tems.php?act=otvet&id=$1 [L,QSA]


###Админ###
RewriteRule ^adm/?$ /us/adm/index.php [L,QSA]
RewriteRule ^adm/sett/?$ /us/adm/settings.php [L,QSA]
RewriteRule ^adm/smile/?$ /us/adm/smile.php [L,QSA]
RewriteRule ^adm/user([0-9]*)/?$ /us/adm/user.php?id=$1 [L,QSA]
RewriteRule ^adm/sett/site/?$ /us/adm/settings.php?act=site [L,QSA]
RewriteRule ^adm/ochf/?$ /us/adm/settings.php?act=ochf [L,QSA]
RewriteRule ^adm/sett/cena/?$ /us/adm/settings.php?act=cena [L,QSA]
RewriteRule ^adm/ban([0-9]*)/?$ /us/adm/ban.php?act=addban&id=$1 [L,QSA]
RewriteRule ^adm/bann/?$ /us/adm/ban.php?act=ban [L,QSA]
RewriteRule ^adm/upban([0-9]*)/?$ /us/adm/ban.php?act=upban&id=$1 [L,QSA]  
RewriteRule ^adm/banlist/?$ /us/adm/ban.php?act=ban_list [L,QSA]
RewriteRule ^adm/nicked([0-9]*)/?$ /us/adm/nicked.php?id=$1 [L,QSA]

###ZC###
RewriteRule ^zc/nf([0-9]*)/?$ /zc/file.php?act=nf&id=$1 [L,QSA]
RewriteRule ^zc/screen([0-9]*)/?$ /zc/file.php?act=screen&id=$1 [L,QSA]
RewriteRule ^zc/delscreen([0-9]*)/?$ /zc/file.php?act=delscreen&id=$1 [L,QSA]
RewriteRule ^zc/plus([0-9]*)/?$ /zc/file.php?act=plus&id=$1 [L,QSA]
RewriteRule ^zc/minus([0-9]*)/?$ /zc/file.php?act=minus&id=$1 [L,QSA]
RewriteRule ^zc/cat([0-9]*)/?$ /zc/index.php?act=cat&id=$1 [L,QSA]
RewriteRule ^zc/edname([0-9]*)/?$ /zc/file.php?act=edname&id=$1 [L,QSA]
RewriteRule ^zc/block([0-9]*)/?$ /zc/file.php?act=block&id=$1 [L,QSA]
RewriteRule ^zc/razblock([0-9]*)/?$ /zc/file.php?act=razblock&id=$1 [L,QSA]
RewriteRule ^zc/delfile([0-9]*)/?$ /zc/file.php?act=delfile&id=$1 [L,QSA]
RewriteRule ^zc/file([0-9]*)/?$ /zc/file.php?id=$1 [L,QSA]
RewriteRule ^zc/comm([0-9]*)/?$ /zc/comm.php?id=$1 [L,QSA]
RewriteRule ^zc/delc([0-9]*)/?$ /zc/comm.php?act=delc&id=$1 [L,QSA]
RewriteRule ^zc/delcat([0-9]*)/?$ /zc/index.php?act=delcat&id=$1 [L,QSA]
RewriteRule ^zc/edcat([0-9]*)/?$ /zc/index.php?act=edcat&id=$1 [L,QSA]
RewriteRule ^zc/adc?$ /zc/index.php?act=adc [L,QSA]
RewriteRule ^zc/zcs?$ /zc/index.php?act=zcs [L,QSA]
RewriteRule ^zc/fileus([0-9]*)/?$ /zc/my.php?act=fileus&id=$1 [L,QSA]
RewriteRule ^zc/commus([0-9]*)/?$ /zc/my.php?act=commus&id=$1 [L,QSA]

####Миничат####
RewriteRule ^ch/del([0-9]*)/?$ /ch/index.php?act=del&id=$1 [L,QSA]
RewriteRule ^ch/otv([0-9]*)/?$ /ch/index.php?act=otvet&id=$1 [L,QSA]
RewriteRule ^ch/edpost([0-9]*)/?$ /ch/index.php?act=edpost&id=$1 [L,QSA]

###Прочее###
RewriteRule ^faq/bb$ /faq/?act=bb [L,QSA]
RewriteRule ^faq/ur$ /faq/?act=ur [L,QSA]
RewriteRule ^faq/adm$ /faq/?act=adm [L,QSA]