php_flag display_errors off 
php_flag display_startup_errors off


AddType application/java-archive .jar
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType application/vnd.wap.slc .slc
AddType application/vnd.wap.sic .sic
AddType application/vnd.eri.thm .thm
AddType application/vnd.nok-s40theme .nth
AddType application/vnd.Nokie.ringing-tone .rng
AddType application/vnd.nokia.gamedata .nqd
AddType application/x-nokiagamedata .ngd
AddType application/vnd.alcatel.SEQ .seq
AddType application/vnd.uiq.thm .utz
AddType application/vnd.mophun.application .mpn
AddType application/vnd.mophun.certificate .mpc
AddType application/vnd.sonyericsson.mms-template tpl
AddType application/vnd.siemens-mp.theme .sdt
AddType application/vnd.siemens-mp.skin .scs
AddType application/vnd.siemens-mp.t9db .ldb
AddType application/vnd.ms-cab-compressed .cab
AddType application/vnd.symbian.install .sis
AddType application/octet-stream .sisx
AddType application/vnd.symbian.install .app
#AddType application/x-httpd-php .rss
AddType application/x-compress .z
AddType application/x-7z-compressed .7z
AddType application/x-rar-compressed .rar
AddType application/x-zip .zip
AddType application/x-gzip .gz
AddType application/x-gzip .tgz
AddType application/x-tar .tar
AddType application/x-bzip .bz
AddType application/x-bzip .bz2
AddType application/x-tar .hid
AddType application/chm .chm
AddType application/x-pmd .pmd
AddType application/smil .smil
AddType application/smil .smi
AddType application/vnd.smaf .mmf
AddType application/vnd .smaf
AddType application/vnd.wap.mms-message .mms
AddType application/vnd.oma.drm.message .dm
AddType application/x-dvi .dvi
AddType application/msword .doc
AddType application/pdf .pdf
AddType application/postscript .ps
AddType application/postscript .eps
AddType application/x-tex .tex
AddType application/octet-stream .com
AddType application/octet-stream .exe
AddType application/octet-stream .bat

AddType audio/basic .au
AddType audio/basic .snd
AddType audio/imelody .imy
AddType audio/mid .srt
AddType audio/mid .midi
AddType audio/mid .mid
AddType audio/mid .col
AddType audio/mpeg .mp3
AddType audio/aac .aac
AddType audio/amr .amr
AddType audio/amr-wb .awb
AddType audio/rmf .rmf
AddType audio/vnd.qcelp .qcp
AddType audio/aiff .aiff
AddType audio/x-wav .wav
AddType audio/x-ms-wma .wma

AddType image/vnd.wap.wbmp .wbmp
AddType image/bmp .bmx
AddType image/png .png
AddType image/jpeg .jpg
AddType image/jpeg .jpe
AddType image/jpeg .jpeg
AddType image/gif .gif
AddType image/bmp .bmp
AddType image/x-epoc-mbm .mbm
AddType image/vnd.nok-3dscreensaver .n3a
AddType image/x-epoc-mbm .mbm
AddType image/vnd.nok-3dscreensaver .n3a
AddType image/vnd.nok-oplogo-colornokia-op-logo .nok
AddType image/x-jg .art
AddType image/tiff .tiff

AddType video/3gpp .3gp
AddType video/mp4 .mp4
AddType video/mpeg .mpeg
AddType video/mpeg .mpg
AddType video/mpeg .mpe
AddType video/quicktime .mov
AddType video/quicktime .qt
AddType video/x-msvideo .avi
AddType video/x-ms-wmv .wmv
AddType video/x-ms-asf .asf
AddType video/x-ivf .ivf

AddType x-world/x-vrml .wrl


Options -Indexes

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^stena([0-9]+)$ profile.php?mode=stena&u=$1 [L]
RewriteRule ^reg([0-9]+)$ add_u.php?mode=reg&ref=$1 [L]
RewriteRule ^podarki([0-9]+)$ profile.php?mode=podarki&u=$1 [L]
RewriteRule ^id([0-9]+)$ profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^blogi-([a-z]+)$ blogs.php?act$1 [L]

RewriteRule ^chat$ chat.php$1 [L]
RewriteRule ^forum$ forum.php$1 [L]
RewriteRule ^blog$ blog.php$1 [L]
RewriteRule ^foto$ album.php$1 [L]
RewriteRule ^games$ games.php$1 [L]
RewriteRule ^millioner$ millioner.php$1 [L]
RewriteRule ^kosti$ LuckyDice.php$1 [L]
RewriteRule ^karty$ ChanceAce.php$1 [L]
RewriteRule ^vhod$ login.php$1 [L]
RewriteRule ^reg$ add_u.php?mode=reg$1 [L]

RewriteRule ^obmen$ exchange.php$1 [L]
RewriteRule ^obmen_cat([0-9]+)$ exchange.php?mode=viewgroup&g=$1 [L]
RewriteRule ^obmen_format_([a-z,0-9]+)$ exchange.php?mode=viewextension&ext=$1 [L]
RewriteRule ^addfile$ exchange.php?mode=add$1 [L]
RewriteRule ^file([0-9]+)$ exchange.php?mode=download&id=$1 [L]
RewriteRule ^delfile([0-9]+)$ exchange.php?mode=delete&id=$1 [L]


RewriteCond %{HTTP_HOST} ^([^\.]+)\.test5\.ru$ [NC]
RewriteCond %{HTTP_HOST} !^www\.test5\.ru$ [NC]
RewriteRule ^(.*)$ http://test5.ru/g_user.php?user=%1 [R,QSA]

ErrorDocument 403 /error.php?tip=403
ErrorDocument 404 /error.php?tip=404


