# так безопаснее
php_value register_globals 0
# убираем экранирование кавычек
php_value magic_quotes_gpc 0
# дописываем сессию к URL
php_value session.use_trans_sid 1
php_value session.cookie_lifetime 0
#php_value session.cookie_domain ".4i4i.backup.wapfa.su"
php_value upload_max_filesize 100M
# кодировка по-умолчанию
AddDefaultCharset UTF-8
DirectoryIndex index.php
Options -Indexes
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
#на скачивание файлов
RewriteRule ^shop/goods/([0-9]*)/download/([0-9]*) ?func=shop.goods&id=$1&download=$2 [L,QSA]
RewriteRule ^shop/goods/([0-9]*)/([0-9]*) ?func=shop.goods&id=$1 [L,QSA]
RewriteRule ^cash/user/([0-9]*)/goods/([0-9]*)/download/([0-9]*) ?func=shop.bought&id=$1&goods=$2&download=$3 [L,QSA]
RewriteRule ^mail/user/([0-9]*)/download/([0-9]*) /?func=user.mail&id=$1&download=$2 [L,QSA]
##########################
#RewriteRule ^wm/id-([0-9]*)/ /?func=user.profile&id=$1 [L,QSA]
#Новости
RewriteRule ^news\.html /?func=news [L,QSA]
RewriteRule ^news([0-9]*)\.html?$ /?func=news.comments&id=$1 [L,QSA]
#Онлайн
RewriteRule ^online\.html/page=([a-z0-9]*) /?func=list.users&online&page=$1 [L,QSA]
RewriteRule ^list\.html/page=([a-z0-9]*) /?func=list.users&page=$1 [L,QSA]
#магазин
RewriteRule ^goods/(.*)?$ /?func=shop.goods&id=$1 [L,QSA]
RewriteRule ^profiwm/([0-9]*) /?func=profiwm&id=$1 [L,QSA]
# ссылки на товары вида domen.ru/seller/nick, на анкету пользователя вида domen.ru/wm/nick
# ссылки на магазин вида domen.ru/shop/название категории
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^seller/(.*)?$ /?func=siller.user&links=$1&ref=$1 [L,QSA]
RewriteRule ^wm/(.*)?$ /?func=links.users&links=$1&ref=$1 [L,QSA]
RewriteRule ^@([a-zA-Z-0-9]*)?$ /?func=links.users&links=$1&ref=$1 [L,QSA]
RewriteRule ^shop/(.*)?$ /?func=shop.magazin&links=$1 [L,QSA]
#RewriteCond %{SERVER_PORT} ^443$ [OR]
#RewriteCond %{HTTP} =on
#RewriteRule ^(.*)$ http://4i4i.ru/$1 [R=301,L]
</IfModule>
# задаем соответствие mime типов расширению
AddType text/vnd.wap.wml;charset=utf-8 .wml
AddType application/vnd.sonyericsson.mms-template tpl
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.eri.thm .thm
AddType application/vnd.mophun.application .mpn
AddType application/vnd.mophun.certificate .mpc
AddType text/vnd.sun.j2me.app-descriptor .jad
Addtype text/x-vmel .mel
Addtype audio/imelody .imy
AddType application/vnd.smaf .mmf
Addtype text/x-vmel .emy
AddType audio/amr .amr
AddType audio/x-wav .wav
AddType application/x-tar .hid
Addtype image/jpeg .jpg
Addtype image/jpeg .jpeg
Addtype image/gif .gif
Addtype image/png .png
Addtype image/bmp .bmp
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 application/smil .smil
Addtype application/smil .smi
Addtype application/java-archive .jar
Addtype application/vnd.symbian.install .sis
Addtype audio/wav .wav
Addtype audio/midi .midi
Addtype audio/midi .mid
Addtype audio/rmf .rmf
Addtype application/vnd.wap.mms-message .mms
AddType video/flv .flv
AddType video/mp4 .mp4
Addtype video/3gpp .3gp
Addtype application/zip .zip
Addtype audio/mpeg .mp3
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
Deny from 157.50.