Файл: masteram_us/.htaccess
Строк: 157
##RewriteEngine On
##RewriteCond %{REQUEST_METHOD} ^TRACE
##RewriteRule .*
- [F]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.masteram.us$
[NC]
RewriteRule ^(.*)$ http://masteram.us/$1 [R=301,L]
##
Блокировка по USER AGENT:
RewriteCond %{HTTP_USER_AGENT}
MJ12bot [OR]
RewriteCond %{HTTP_USER_AGENT} Java [OR]
RewriteCond
%{HTTP_USER_AGENT} NjuiceBot [OR]
RewriteCond %{HTTP_USER_AGENT} Gigabot
[OR]
RewriteCond %{HTTP_USER_AGENT} Baiduspider [OR]
RewriteCond
%{HTTP_USER_AGENT} JS-Kit [OR]
RewriteCond %{HTTP_USER_AGENT} Voyager
[OR]
RewriteCond %{HTTP_USER_AGENT} PostRank [OR]
RewriteCond
%{HTTP_USER_AGENT} PycURL [OR]
RewriteCond %{HTTP_USER_AGENT} Aport
[OR]
RewriteCond %{HTTP_USER_AGENT} ia_archiver [OR]
RewriteCond
%{HTTP_USER_AGENT} DotBot [OR]
RewriteCond %{HTTP_USER_AGENT} SurveyBot
[OR]
RewriteCond %{HTTP_USER_AGENT} larbin [OR]
RewriteCond
%{HTTP_USER_AGENT} Butterfly [OR]
RewriteCond %{HTTP_USER_AGENT} libwww
[OR]
RewriteCond %{HTTP_USER_AGENT} Wget [OR]
RewriteCond
%{HTTP_USER_AGENT} SWeb [OR]
RewriteCond %{HTTP_USER_AGENT} LinkExchanger
[OR]
RewriteCond %{HTTP_USER_AGENT} Soup [OR]
RewriteCond
%{HTTP_USER_AGENT} WordPress [OR]
RewriteCond %{HTTP_USER_AGENT} PHP/
[OR]
RewriteCond %{HTTP_USER_AGENT} spbot [OR]
RewriteCond
%{HTTP_USER_AGENT} MLBot [OR]
RewriteCond %{HTTP_USER_AGENT} InternetSeer
[OR]
RewriteCond %{HTTP_USER_AGENT} FairShare [OR]
RewriteCond
%{HTTP_USER_AGENT} Yeti [OR]
RewriteCond %{HTTP_USER_AGENT} Birubot
[OR]
RewriteCond %{HTTP_USER_AGENT} YottosBot [OR]
RewriteCond
%{HTTP_USER_AGENT} gold\ crawler [OR]
RewriteCond %{HTTP_USER_AGENT}
Linguee [OR]
RewriteCond %{HTTP_USER_AGENT} Ezooms [OR]
RewriteCond
%{HTTP_USER_AGENT} lwp-trivial [OR]
RewriteCond %{HTTP_USER_AGENT} Purebot
[OR]
RewriteCond %{HTTP_USER_AGENT} User-Agent [OR]
RewriteCond
%{HTTP_USER_AGENT} kmSearchBot [OR]
RewriteCond %{HTTP_USER_AGENT} SiteBot
[OR]
RewriteCond %{HTTP_USER_AGENT} CamontSpider [OR]
RewriteCond
%{HTTP_USER_AGENT} ptd-crawler [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack
[OR]
RewriteCond %{HTTP_USER_AGENT} suggybot [OR]
RewriteCond
%{HTTP_USER_AGENT} ttCrawler [OR]
RewriteCond %{HTTP_USER_AGENT} Slurp
[OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
RewriteCond
%{HTTP_USER_AGENT} Zeus
RewriteRule ^(.*)$ – [F,L]
##php_value
max_execution_time 45
##Основные
страници##########################################################
##RewriteRule
^Главная$ index.php? [L,QSA] ## Главная
##RewriteRule
^главная$ index.php? [L,QSA] ## Главная
RewriteRule
^photo([0-9]+)$ photo.php?nk=$1 [L,QSA] ## Фото
RewriteRule
^stena([0-9]+)$ info/stena.php?nk=$1 [L,QSA] ## Стена
RewriteRule
^rating([0-9]+)$ info/rating.php?nk=$1 [L,QSA] ## rating
RewriteRule
^sps([0-9]+)$ info/sps.php?nk=$1 [L,QSA] ## spasibo
RewriteRule
^infringements([0-9]+)$ info/infringements.php?nk=$1 [L,QSA] ##
Стена
####### Альбомы
########################################################################
RewriteRule
^my_albums$ my_albums.php [L,QSA]
#
RewriteRule ^new_album$ new_album.php [L,QSA]
#
RewriteRule ^add_foto$ add_foto.php [L,QSA]
#
RewriteRule ^album([0-9]+)$ album.php?nk=$1
[L,QSA] #
RewriteRule
^album([0-9]+)_([0-9]+)$ album.php?nk=$1&album=$2 [L,QSA]
#
RewriteRule ^album([0-9]+).([0-9]+)$ album.php?nk=$1&album=$2
[L,QSA] #
RewriteRule ^album([0-9]+)_([0-9]+)_([0-9]+)$
album.php?nk=$1&album=$2&foto=$3 [L,QSA]
#
########################################################################################
RewriteRule
^audio([0-9]+)$ audio.php?nk=$1 [L,QSA]
RewriteRule
^audio([0-9]+)_([0-9]+)$ audio.php?nk=$1&mid=$2 [L,QSA]
RewriteRule
^video([0-9]+)$ video.php?nk=$1 [L,QSA]
RewriteRule
^video([0-9]+)_([0-9]+)$ video.php?nk=$1&mid=$2 [L,QSA]
RewriteRule
^groups/group([0-9]+)$ groups/index.php?mod=group&gid=$1
[L,QSA]
RewriteRule ^diaries([0-9]+)$ diaries.php?mod=user&nk=$1
[L,QSA]
RewriteRule ^gifts([0-9]+)$ gifts/?nk=$1 [L,QSA]
RewriteRule
^gifts([0-9]+)_([0-9]+)$ gifts/?nk=$1&gift=$2&mod=read
[L,QSA]
##RewriteRule ^([0-9]+)$ info/index.php?nk=$1 [L,QSA] ##
Анкета
RewriteRule ^([0-9a-zA-Zа-яА-Я\-\@\*\(\)\?\!\~\_\=\[\]]+)$
info/index.php?nk=$1 [L,QSA] ##
RewriteRule ^id([0-9]+)$
info/index.php?nk=$1 [L,QSA] ## Анкета
RewriteRule ^([a-z0-9]+)$
$1.php [L,QSA]
RewriteRule ^([a-z0-9]+)_([a-z0-9]+)$ $1_$2.php
[L,QSA]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)$ $1/$2.php [L,QSA]
RewriteRule
^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+)$ $1/$2_$3.php
[L,QSA]
########################Ссылки##########################################################
RewriteRule
^([a-z0-9]+).php10$ $1.php [L,QSA]
#
RewriteRule ^([a-z0-9]+).wml$ $1.php [L,QSA]
#
RewriteRule ^([a-z0-9]+).html$ $1.php [L,QSA]
#
RewriteRule ^([a-z0-9]+).cgi$ $1.php [L,QSA]
#
RewriteRule ^([a-z0-9]+).perl$
$1.php [L,QSA] #
RewriteRule
^([a-z0-9]+).shaxter$ $1.php [L,QSA]
#
RewriteRule ^([a-z0-9]+).shaxty$ $1.php [L,QSA]
#
#
RewriteRule ^([a-z0-9]+)_([a-z0-9]+).php10$
$1_$2.php [L,QSA] #
RewriteRule
^([a-z0-9]+)_([a-z0-9]+).wml$ $1_$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)_([a-z0-9]+).html$ $1_$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)_([a-z0-9]+).cgi$ $1_$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)_([a-z0-9]+).perl$
$1_$2.php [L,QSA] #
RewriteRule
^([a-z0-9]+)_([a-z0-9]+).shaxter$ $1_$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)_([a-z0-9]+).shaxty$ $1_$2.php [L,QSA]
#
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+).php10$
$1/$2.php [L,QSA] #
RewriteRule
^([a-z0-9]+)/([a-z0-9]+).wml$ $1/$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+).html$ $1/$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+).cgi$ $1/$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+).perl$
$1/$2.php [L,QSA] #
RewriteRule
^([a-z0-9]+)/([a-z0-9]+).shaxter$ $1/$2.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+).shaxty$ $1/$2.php [L,QSA]
#
#
RewriteRule
^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).php10$ $1/$2_$3.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).wml$ $1/$2_$3.php
[L,QSA] #
RewriteRule
^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).html$ $1/$2_$3.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).cgi$ $1/$2_$3.php
[L,QSA] #
RewriteRule
^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).perl$ $1/$2_$3.php [L,QSA]
#
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).shaxter$ $1/$2_$3.php
[L,QSA] #
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)_([a-z0-9]+).shaxty$
$1/$2_$3.php [L,QSA]
#
########################################################################################
Addtype
application/zip .zip
Addtype application/x-rar-compressed .rar
AddType
application/vnd.sonyericsson.mms-template tpl
AddType
application/vnd.eri.thm .thm
AddType application/vnd.mophun.application
.mpn
AddType application/vnd.mophun.certificate .mpc
AddType
application/vnd.smaf .mmf
AddType application/x-tar .hid
Addtype
application/smil .smil
Addtype application/smil .smi
Addtype
application/java-archive .jar
Addtype application/vnd.symbian.install
.sis
Addtype application/vnd.wap.mms-message .mms
Addtype
application/octet-stream .exe
Addtype text/x-imelody .imy
Addtype
text/x-emelody .emy
Addtype text/x-vcard .vcf
Addtype text/x-vcalendar
.vcs
Addtype text/calendar .ics
AddType
text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .jad
addtype text/x-vmel
.mel
addtype text/x-vmel .emy
addtype audio/imelody .imy
AddType audio/amr
.amr
AddType audio/x-wav .wav
Addtype audio/wav .wav
Addtype audio/midi
.midi
Addtype audio/midi .mid
Addtype audio/rmf .rmf
Addtype image/jpeg
.jpg
Addtype image/jpeg .jpeg
Addtype image/gif .gif
Addtype image/png
.png
Addtype image/bmp .bmp
AddType video/mp4 .mp4
Addtype video/3gpp
.3gp
RemoveHandler .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp
.aspx .shtml .shtm .fcgi .fpl .jsp .py
AddType
application/x-httpd-php-source .phtml .php3 .php4 .php5 .php6 .phps .cgi
.pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
php_flag display_errors
7
php_value error_reporting 7
php_value register_globals 0
php_flag
session.use_trans_sid off
php_value magic_quotes_gpc 0
php_value
magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value
allow_url_fopen 0
php_value arg_separator.output
"&"
DirectoryIndex index.php
AddDefaultCharset
UTF-8
Options -Indexes
ErrorDocument 404 /404.php