Вход Регистрация
Файл: rayb.me/.htaccess
Строк: 141
# Определяем кодеровку сайта AddDefaultCharset
utf-8 php_flag session.auto_start on # Основная
страница DirectoryIndex index.php # Настройки для
сайта в рабочем режиме php_flag display_startup_errors
off php_flag display_errors off php_flag html_errors off php_flag
log_errors on # Отключить логирование
повторяющихся ошибок php_flag ignore_repeated_errors
off php_flag ignore_repeated_source off php_flag report_memleaks
on php_flag track_errors on php_value docref_root 0 php_value docref_ext
0 php_value error_reporting -1 php_value log_errors_max_len 0 # Вывод
ошибок php в произвольный лог файл php_value
error_log
/home/a0527315/domains/rayb.me/public_html/logs/rayb_errors.log #
Защищаем папку с логами от доступа <Files
/home/a0527315/domains/rayb.me/public_html/logs/rayb_errors.log> Order
allow,deny Deny from all Satisfy All </Files> # Защищаем
.htaccess файл <files .htaccess> order allow,deny deny from
all </files> # Включение PHP в .html
файлах RemoveHandler .html .htm AddType application/x-httpd-php .php
.htm .html .phtml # Включаем отслеживание
сим-ссылок Options +FollowSymLinks # Включаем
url_rewriting RewriteEngine On # Включаем
перенаправление https RewriteCond %{HTTPS} off RewriteCond
%{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$
https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Защита:
Блокируем все ссылки, содержащие
<script> RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E)
[NC,OR] # Защита: Блокируем все скрипты,
которые пытаются изменить переменные PHP
Globals: RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] #
Защита: Блокируем все скрипты, которые
пытаются изменить переменную
_REQUEST: RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) #
Ядро сайта RewriteCond %{REQUEST_FILENAME} !-f RewriteCond
%{REQUEST_FILENAME} !-d # ЧПУ страниц ws-pages RewriteRule ^/?$
index.php [L,QSA] RewriteRule ^upgrade?$ upgrade.php [L,QSA] RewriteRule
^login/?$ login.php [L,QSA] RewriteRule ^registration?$ registration.php
[L,QSA] RewriteRule ^up?$ up.php [L,QSA] RewriteRule ^ref?$ ref.php
[L,QSA] RewriteRule ^password/?$ pass.php [L,QSA] RewriteRule
^payment/boy?$ pay/buy.php [L,QSA] RewriteRule ^payment/?$ pay/index.php
[L,QSA] # Профиль RewriteRule ^profile/([0-9]*)/?$ profile.php?id=$1
[L,QSA] RewriteRule ^profile/pay/10/?$ profile.php?pay10
[L,QSA] RewriteRule ^profile/pay/30/?$ profile.php?pay30
[L,QSA] RewriteRule ^profile/pay/90/?$ profile.php?pay90
[L,QSA] RewriteRule ^profile/pay/270/?$ profile.php?pay270
[L,QSA] RewriteRule ^profile/pay/810/?$ profile.php?pay810
[L,QSA] RewriteRule ^profile/pay/2430/?$ profile.php?pay2430
[L,QSA] RewriteRule ^smiles?$ smiles.php [L,QSA] RewriteRule
^gifts/([0-9]*)?$ gifts.php?id=$1 [L,QSA] RewriteRule ^freinds/([0-9]*)/?$
friends.php?id=$1 [L,QSA] # Двойной доход RewriteRule
^dx2/([0-9]*)/?$ profile.php?dubl=$1 [L,QSA] # Главная
страница RewriteRule ^game/([0-9]*)/?$ game.php?page=$1
[L,QSA] RewriteRule ^game/payment/([0-9]*)/([0-9]*)/?$ game.php?payment=$1
[L,QSA] RewriteRule ^game/up/([0-9]*)/?$ game.php?up=$1 [L,QSA]
RewriteRule ^game/up/10/([0-9]*)/?$ game.php?up10=$1 [L,QSA] RewriteRule
^game/up/100/([0-9]*)/?$ game.php?up100=$1 [L,QSA] RewriteRule
^game/max/([0-9]*)/?$ game.php?max=$1 [L,QSA] # plugins
PLUGINS RewriteRule ^games/([0-9]*)/?$ plugins/games/ [L,QSA] RewriteRule
^games/ydacha/?$ plugins/games/ydacha.php [L,QSA] RewriteRule
^games/sahta/?$ plugins/games/sahta.php [L,QSA] RewriteRule ^pl/?$ plugins/
[L,QSA] RewriteRule ^pl/koleso/?$ plugins/koleso/ [L,QSA] #
Гражданство RewriteRule ^gr/([0-9]*)/([0-9]*)/?$
profile.php?g_buy=$1 [L,QSA] # помощь RewriteRule ^help?$ help.php
[L,QSA] # Нарушения RewriteRule ^narush/([0-9]*)/([0-9]*)/?$
narush.php?id=$1 [L,QSA] RewriteRule ^ban/([0-9]*)/([0-9]*)/?$
ban.php?id=$1 [L,QSA] # Клан RewriteRule ^corps/?$ clans.php?id=$1
[L,QSA] RewriteRule ^corp/([0-9]*)/?$ clan.php?id=$1 [L,QSA] RewriteRule
^corp/st?$ clanst.php [L,QSA] RewriteRule ^corp/user/([0-9]*)/?$
clan.php?user=$1 [L,QSA] RewriteRule ^corp/kazna/?$ clan.php?kazna
[L,QSA] RewriteRule ^corp/gerb/?$ clan.php?gerb [L,QSA] RewriteRule
^corp/chat/?$ clan.php?chat [L,QSA] RewriteRule ^corp/setting/?$
clan.php?setting [L,QSA] RewriteRule ^corp/give_ruby/?$ clan.php?give_ruby
[L,QSA] RewriteRule ^corp/histor/?$ clan.php?histor [L,QSA] RewriteRule
^corp/forum/([0-9]*)?$ cforum.php?id=$1 [L,QSA] RewriteRule
^corp/forum/sub/([0-9]*)?$ cforum.php?cforum_topic=$1 [L,QSA] RewriteRule
^ip_proverka/([0-9]*)?$ ip_proverka.php?id=$1 [L,QSA] RewriteRule
^settings?$ settings.php [L,QSA] RewriteRule ^chat/?$ chat.php
[L,QSA] RewriteRule ^gchat/?$ gchat.php [L,QSA] RewriteRule ^rating?$
rating.php [L,QSA] RewriteRule ^online?$ online.php [L,QSA] RewriteRule
^mail/([0-9]*)?$ mail.php?id=$1 [L,QSA] # Форум RewriteRule
^forum/([0-9]*)?$ forum.php?id=$1 [L,QSA] RewriteRule ^forum/sub/([0-9]*)?$
forum.php?topic=$1 [L,QSA] # Сжатие статики <IfModule
mod_mime.c> AddType application/javascript
js </Ifmodule> <IfModule mod_deflate.c> AddOutputFilterByType
DEFLATE text/html text/plain text/css
application/json AddOutputFilterByType DEFLATE
application/javascript AddOutputFilterByType DEFLATE text/xml
application/xml text/x-component AddOutputFilterByType DEFLATE
application/xhtml+xml application/rss+xml
application/atom+xml </Ifmodule> # Кэширование
статики <IfModule mod_expires.c> ExpiresActive On # A0 =
Access + 0 seconds ExpiresDefault A0 # 1 YEAR — doesn’t change
often <FilesMatch
".(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> ExpiresDefault
A29030400 Header set Cache-Control "max-age=29030400,
public" </FilesMatch> # 1 WEEK — possible to be changed,
unlikely <FilesMatch
".(jpg|jpeg|png|gif|swf)$"> ExpiresDefault A604800 Header set
Cache-Control "max-age=604800, public" </FilesMatch> # 3
HOUR — core content, changes quickly <FilesMatch
".(txt|xml|js|css)$"> ExpiresDefault A10800 Header set
Cache-Control "max-age=10800,
public" </FilesMatch> </IfModule> <IfModule
mod_deflate.c> AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE
text/javascript AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE
image/x-icon AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType
DEFLATE application/javascript AddOutputFilterByType DEFLATE
application/x-javascript AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType
DEFLATE application/x-font AddOutputFilterByType DEFLATE
application/x-font-truetype AddOutputFilterByType DEFLATE
application/x-font-ttf AddOutputFilterByType DEFLATE
application/x-font-otf AddOutputFilterByType DEFLATE
application/x-font-opentype AddOutputFilterByType DEFLATE
application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE
font/opentype # For Older Browsers Which Can't Handle Compression
BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch
^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip
!gzip-only-text/html </IfModule> # Переопределяем
страницы ошибок ErrorDocument 400
/error.php?id=400 ErrorDocument 401 /error.php?id=401 ErrorDocument 402
/error.php?id=402 ErrorDocument 403 /error.php?id=403 ErrorDocument 404
/error.php?id=404 ErrorDocument 500 /error.php?id=500 ErrorDocument 502
/error.php?id=502
Онлайн: 2
Реклама