php_value register_globals 0
php_value magic_quotes_gpc 0


DirectoryIndex index.php
Options -Indexes


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/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/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


Addtype application/java-archive .jar 
AddType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .jad
AddDefaultCharset UTF-8

ErrorDocument 400 /err.php
ErrorDocument 401 /err.php
ErrorDocument 402 /err.php
ErrorDocument 403 /err.php
ErrorDocument 404 /err.php
ErrorDocument 500 /err.php
ErrorDocument 502 /err.php



RewriteEngine on
RewriteRule ^art_id([0-9]+)-page([0-9]+).html$ article.php?id=$1&page=$2
RewriteRule ^art_id([0-9]+).html$ article.php?id=$1
RewriteRule ^view([0-9]+)-page([0-9]+).html$ view.php?id=$1&page=$2
RewriteRule ^view([0-9]+).html$ view.php?id=$1
RewriteRule ^comm([0-9]+)-page([0-9]+).html$ comm.php?id=$1&page=$2
RewriteRule ^comm([0-9]+).html$ comm.php?id=$1
RewriteRule ^comm_act([0-9]+).html$ comm.php?act=add&id=$1
RewriteRule ^comm([0-9]+)-page([0-9]+).html$ comm.php?id=$1&page=$2
RewriteRule ^txt([0-9]+).html$ txt.php?id=$1
RewriteRule ^java([0-9]+).html$ java.php?id=$1

RewriteRule ^out.html$ out.php
RewriteRule ^top.html$ top.php
RewriteRule ^new.html$ new.php
RewriteRule ^new-page([0-9]+).html$ new.php?page=$1
RewriteRule ^art([0-9]+)plus.html$ article.php?id=$1&plus
RewriteRule ^art([0-9]+)minus.html$ article.php?id=$1&minus
RewriteRule ^bbcode.html$ faq.php?act=bbcode
RewriteRule ^smile.html$ faq.php?act=smile
RewriteRule ^search.html$ search.php


RewriteRule ^search([a-z0-9_]+)-m([a-z0-9_]+)-p([0-9]+).html$ search.php?search=$1&mm=$2&page=$3 [L,NC]


