RewriteEngine on /
RewriteRule ^forum/?$ forum.php [L]
RewriteRule ^index/?$ index.php [L]
RewriteRule ^users/?$ users.php [L]
RewriteRule ^logout/?$ logout.php [L]
RewriteRule ^login/?$ login.php [L]
RewriteRule ^login_new/?$ login_new.php [L]
RewriteRule ^id([0-9]+)(/?)+$ my.php?user=$1 [L]
RewriteRule ^id/?$ my.php [L]
RewriteRule ^settings/?$ settings.php [L]
RewriteRule ^anketa/?$ anketa.php [L]
RewriteRule ^bb-code/?$ bb-code.php [L]
RewriteRule ^chat/?$ chat.php [L]
RewriteRule ^smiles/?$ smiles.php [L]
RewriteRule ^friends/?$ friends.php [L]
RewriteRule ^jurnal/?$ jurnal.php [L]
RewriteRule ^lib/?$ lib.php [L]
RewriteRule ^mail/?$ mail.php [L]
RewriteRule ^news/?$ news.php [L]
RewriteRule ^online/?$ online.php [L]
RewriteRule ^guest/?$ guest.php [L]
RewriteRule ^votes/?$ votes.php [L]
RewriteRule ^grafic/?$ grafic.php [L]
RewriteRule ^id([0-9]+)$ my.php?id=$1
RewriteRule ^tegins_cms/?$ tegins_cms.php [L]

php_value date.timezone Europe/Moscow
php_value register_globals 0
DirectoryIndex index.php
Options -Indexes
AddDefaultCharset UTF-8
php_value session.cookie_lifetime 0
php_flag magic_quotes_gpc 0


<Files count.php>
order allow,deny
deny from all
</Files>

AddType text/vnd.wap.wml;charset=cp1251 .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/mp4 .mp4
Addtype video/3gpp .3gp
Addtype application/zip .zip
AddType application/x-rar .rar


ErrorDocument 400 /index
ErrorDocument 401 /index
ErrorDocument 402 /index
ErrorDocument 403 /index
ErrorDocument 404 /index
ErrorDocument 500 /index
ErrorDocument 502 /index
