DirectoryIndex index.php
#Options All -Indexes
AddDefaultCharset utf-8

ErrorDocument 404 /404.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.ioav\.ru$ [NC]
RewriteRule ^(.*)$ https://ioav.ru/$1 [R=301,L]
RewriteRule ^image/([0-9]+) count/index.php?id=$1&size=big [L]
RewriteRule ^imageOther/([0-9]+) count/index.php?id=$1&size=small [L]
RewriteRule ^go/([0-9]+) in.php?id=$1 [L]
RewriteRule ^out/([0-9]+) out.php?id=$1 [L]
RewriteRule ^m/online/([0-9]+) infos.php?act=online&id=$1 [L]
RewriteRule ^m/hours/([0-9]+) infos.php?act=hours&id=$1 [L]
RewriteRule ^stats/([0-9]+) infos.php?id=$1 [L]
RewriteRule ^m/registration reg.php [L]
RewriteRule ^m/global_stat.php stats.php [L]
RewriteRule ^m/ban ban.php [L]
RewriteRule ^m/contacts contacts.php [L]
RewriteRule ^m/online_statistic.php online.php [L]
RewriteRule ^m/authentication auth.php [L]
RewriteRule ^m/pass.php password.php [L]
RewriteRule ^m/rules rules.php [L]
RewriteRule ^m/faq.php faq.php [L]
RewriteRule ^platforms/ office.php?act=platforms [L]
RewriteRule ^m/office/platforms office.php?act=platforms [L]
RewriteRule ^m/office/addPlatform office.php?act=add_platform [L]
RewriteRule ^m/office/editPlatform/([0-9]+) office.php?act=edit_platform&id=$1 [L]
RewriteRule ^m/office/code/([0-9]+) office.php?act=code&id=$1 [L]
RewriteRule ^m/office office.php [L]
RewriteRule ^gold.php gold/index.php [L]
RewriteRule ^m/best.php gold/best.php [L]
RewriteRule ^best.php gold/buy.php [L]
RewriteRule ^m/category/view/([0-9]+) cat.php?act=view&id=$1 [L]
RewriteRule ^m/category cat.php [L]
RewriteRule ^exit logout.php [L]
RewriteRule ^captha.jpg captha.php [L]

RewriteRule ^fv/(.*)$ https://www.google.com/s2/favicons?domain=$1 [L,QSA]

RewriteRule ^user/(.*)$ modules/profile.php?id=$1 [L,QSA]


RewriteRule ^news$ modules/news.php [L,QSA]
RewriteRule ^news/create$ modules/news.php?act=create [L,QSA]
RewriteRule ^news/([0-9]*)?$ modules/news.php?act=view&id=$1 [L,QSA]
RewriteRule ^news/([0-9]*)/views?$ modules/news.php?act=views&id=$1 [L,QSA]

RewriteRule ^chat$ chat/index.php [L,QSA]

RewriteRule ^vip/?$ vip.php [L,QSA]
RewriteRule ^vip/pay/([0-9]+)?$ vip.php?act=pay&id=$1 [L,QSA]
RewriteRule ^vip/merchant/([0-9]+)?$ vip.php?act=merchant&id=$1 [L,QSA]