TheCheat/CTRev/master/.htaccess - Htaccess File

TheCheat/CTRev/master/.htaccess

allow from all
# Нач. Присваиваем свои документы ошибок
# ErrorDocument 401 /errors/401.html
# ErrorDocument 403 /errors/403.html
# ErrorDocument 404 /errors/404.html
# ErrorDocument 500 /errors/500.html
# Кон.

# Главная страница
DirectoryIndex index.php

# Кодировка по-умолчанию
AddDefaultCharset UTF-8

# Нач. Настраиваем PHP

<IfModule mod_php5.c>

php_flag "register_globals" off
php_flag "short_open_tag" on
php_flag "display_errors" on
php_value "error_reporting" 30711

# Максимальный размер загружаемого файла, размер POST-данных(по 50 мегабайт)

php_value "upload_max_filesize" 50M
php_value "post_max_size" 50M

</IfModule>
# Кон.

# Нач. Настройка rewrite
<IfModule mod_rewrite.c>

SetEnv HTTP_FURL_AVALIABLE 1

<IfModule mod_negotiation.c>
Options +FollowSymLinks -MultiViews -Indexes
</IfModule>

RewriteEngine on

RewriteRule ^static/([a-z0-9-_]+).(html|php)$                                ./index.php?module=statics&page=$1 [NC,L]

RewriteRule ^users/([^/]+)/?$                                                   ./index.php?module=user&user=$1 [NC,L]
RewriteRule ^users/([^/]+)/cid([0-9]+).(html|php)$                             ./index.php?module=user&user=$1&cid=$2 [NC,L]
RewriteRule ^users/([^/]+)/index(?:-cid([0-9]+))?.(html|php)$                 ./index.php?module=user&user=$1&cid=$2 [NC,L]
RewriteRule ^users/([^/]+)/([^/]+)(?:-cid([0-9]+))?.(html|php)$               ./index.php?module=user&user=$1&act=$2&cid=$3 [NC,L]

RewriteRule ^polls/(?:id([0-9]+)-|)(edit|add|view).(html|php)$                ./index.php?module=polls_manage&id=$1&act=$2 [NC,L]
RewriteRule ^polls(/?|/index.(html|php))$                                      ./index.php?module=polls_manage [NC,L]

RewriteRule ^search/auto-(author|query|tag)-(.+).(html|php)$                 ./index.php?module=search_module&$1=$2&auto=1 [NC,L]
RewriteRule ^search/(author|query|tag)-(.+).(html|php)$                       ./index.php?module=search_module&$1=$2 [NC,L]
RewriteRule ^search/(user|email)-([^/]+).(html|php)$                          ./index.php?module=search_module&$1=$2 [NC,L]
RewriteRule ^search/users.(html|php)$                                          ./index.php?module=search_module&act=user [NC,L]
RewriteRule ^search(|/|/index.(html|php))$                                     ./index.php?module=search_module [NC,L]

RewriteRule ^(?:torrents|articles)(/?|/index.(html|php))$                                   ./index.php?module=content [NC,L]
RewriteRule ^(?:torrents|articles)/(rss|atom).(html|php)$                                   ./index.php?module=content&act=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)/(new|unchecked).(html|php)$                         ./index.php?module=content&act=$2&cat=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/(new|unchecked).(html|php)$                              ./index.php?module=content&act=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})(|/|/index.(html|php))$  ./index.php?module=content&year=$1&month=$2&day=$3 [NC,L]
RewriteRule ^(?:torrents|articles)/([0-9]{4})/([0-9]{1,2})(|/|/index.(html|php))$           ./index.php?module=content&year=$1&month=$2 [NC,L]
RewriteRule ^(?:torrents|articles)/([0-9]{4})(|/|/index.(html|php))$                        ./index.php?module=content&year=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/page([0-9]+).(html|php)$                                 ./index.php?module=content&page=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)-id([0-9]+)-page([0-9]+).(html|php)$                 ./index.php?module=content&id=$2&comments_page=$3 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)-id([0-9]+)-cid([0-9]+).(html|php)$                  ./index.php?module=content&id=$2&cid=$3 [NC,L]
RewriteRule ^(?:torrents|articles)/(add|edit-id([0-9]+)).(html|php)$                       ./index.php?module=content&act=add&id=$2 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)-id([0-9]+).(html|php)$                              ./index.php?module=content&id=$2 [NC,L,QSA]
RewriteRule ^(?:torrents|articles)/(.+)/page([0-9]+).(html|php)$                            ./index.php?module=content&cat=$1&page=$2 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)/add.(html|php)$                                     ./index.php?module=content&act=add&cat=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)/(rss|atom).(html|php)$                              ./index.php?module=content&act=$2&cat=$1 [NC,L]
RewriteRule ^(?:torrents|articles)/(.+)(/?|/index.(html|php))$                              ./index.php?module=content&cat=$1 [NC,L]

RewriteRule ^login/recover-([^/]+)/email-([^/]+).(html|php)$                  ./index.php?module=login&act=recover&key=$1&email=$2 [NC,L]
RewriteRule ^login/recover.(html|php)$                                         ./index.php?module=login&act=recover [NC,L]
RewriteRule ^login/out.(html|php)$                                             ./index.php?module=login&act=out [NC,L]
RewriteRule ^login/ref-(.+).(html|php)$                                       ./index.php?module=login&ref=$1 [NC,L]
RewriteRule ^login(|/|/index.(html|php))$                                      ./index.php?module=login [NC,L]

RewriteRule ^registration(|/|/index.(html|php))$                               ./index.php?module=registration [NC,L]
RewriteRule ^registration/main.(html|php)$                                     ./index.php?module=registration&act=main [NC,L]
RewriteRule ^registration/ckey-([^/]+).(html|php)$                            ./index.php?module=registration&ckey=$2 [NC,L]

RewriteRule ^pm/(read|resend)-id([0-9]+).(html|php)$                          ./index.php?module=messages&act=read&id=$1 [NC,L]
RewriteRule ^pm/(output|sended|send).(html|php)$                               ./index.php?module=messages&act=$1 [NC,L]
RewriteRule ^pm(/?|/index.(html|php))$                                         ./index.php?module=messages [NC,L]
RewriteRule ^pm/([^/]+)(/(index|send).(html|php))?$                            ./index.php?module=messages&act=send&to=$1 [NC,L,QSA]

RewriteRule ^usercp(|/|/index.(html|php))$                                     ./index.php?module=usercp [NC,L]
RewriteRule ^usercp/([^/]+).(html|php)$                                        ./index.php?module=usercp&act=$1 [NC,L]

RewriteRule ^news/(?:id([0-9]+)-|)(edit|add).(html|php)$                      ./index.php?module=news&id=$1&act=$2 [NC,L]

RewriteRule ^download/id([0-9]+).torrent$                                      ./index.php?module=content&act=download&id=$1 [NC,L]

RewriteRule ^attach/id([0-9]+).([A-Za-z0-9_-]+)$                             ./index.php?module=attach_manage&act=download&id=$1 [NC,L]

RewriteRule ^announce/p([a-z0-9]+)$                                             ./announce.php?passkey=$1 [NC,L,QSA]
RewriteRule ^scrape/p([a-z0-9]+)$                                               ./scrape.php [NC,L,QSA]

# Для поисковиков, на всякий случай.
RewriteRule ^sitemap.xml$                                                       ./upload/sitemap.xml [NC,L]
</IfModule>
# Кон.

On Github License

Files

Download PDF of Htaccess file
POST, static

Comments

Apache