##############################################################################################################
#
#         (##)   ,
#    -          ( 500)
#              
#         ##   
#     3  ###        
#
##############################################################################################################
# MIME-   
AddType text/html .htm 
AddType text/html .html 
AddType text/html .htmls 
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .wmls
AddType text/vnd.wap.wmlscript .wmlsc
AddType text/vnd.wap.si .si
AddType text/x-vCalendar .vcs
AddType text/v-vCard .vcf
AddType text/x-co-desc .cod
AddType text/css .css 
AddType text/x-vmel .mel
AddType text/x-vmel .emy
AddType application/xml .xml 

# MIME-  
AddType text/sun.j2me.app-descriptor .jad
AddType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .jad
AddType application/java-archive .jar
AddType application/sis .sis
AddType application/sisx .sisx
AddType application/vnd.Nokie.ringing-tone .rng
AddType application/vnd.symbian.install .sis
AddType application/vnd.symbian.install .sisx
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.mophun.application .mpn
AddType application/vnd.mophun.certificate .mpc
AddType application/vnd.wap.sic .sic
AddType application/vnd.nokia.gamedata .nqd
AddType application/x-nokiagamedata .ngd
AddType application/x-pmd .pmd


# MIME-   
AddType application/x-smaf .mmf
AddType audio/mpeg .mp3
AddType audio/amr .amr
AddType audio/midi .mid
AddType audio/midi .midi
AddType audio/midi .mid 
AddType music/crescendo .mid 
AddType audio/x-mid .mid 
AddType audio/x-midi .mid 
AddType x-music/x-midi .mid 
AddType application/x-midi .midi 
AddType audio/midi .midi 
AddType music/crescendo .midi 
AddType audio/x-mid .midi 
AddType audio/x-midi .midi 
AddType x-music/x-midi .midi 
AddType audio/vnd.qcelp .qcp
AddType audio/x-gsm .gsd 
AddType audio/midi .kar 
AddType music/x-karaoke .kar 
AddType audio/mpeg .m2a 
AddType audio/mpegurl .m3u 
AddType audio/x-mpequrl .m3u 
AddType audio/x-scpls .m3u 
AddType audio/mpeg .mp2 
AddType audio/x-mpeg .mp2 
AddType audio/mp3 .mp3 
AddType audio/mpeg .mp3 
AddType audio/mpeg3 .mp3 
AddType audio/mpg .mp3 
AddType audio/x-mpeg .mp3 
AddType audio/x-mpeg-3 .mp3 
AddType audio/mpg .mp4
AddType audio/mpeg .mpa 
AddType audio/mpeg .mpg 
AddType audio/mpeg .mpga 
AddType audio/mod .mod 
AddType audio/x-mod .mod 
AddType audio/vnd.everad.plj .plj 
AddType audio/mpegurl .pls 
AddType audio/x-mpequrl .pls 
AddType audio/x-scpls  .pls 
AddType audio/vnd.qcelp .qcp 
AddType audio/vnd.rn-realaudio .ra 
AddType audio/x-pn-realaudio .ra 
AddType audio/x-pn-realaudio-plugin .ra 
AddType audio/x-realaudio .ra 
AddType audio/x-pn-realaudio .ram 
AddType audio/wav .wav 
AddType audio/x-wav .wav 
AddType audio/imelody .imy
AddType audio/rmf .rmf 

# MIME-  
AddType video/3gpp .3gp
AddType video/mp4 .mp4
AddType video/quicktime .avi 
AddType application/x-troff-msvideo .avi 
AddType video/avi .avi 
AddType video/x-msvideo .avi 
AddType video/avs-video .avs 
AddType video/dl .dl 
AddType video/x-dl .dl 
AddType video/vnd.fvt .fvt 
AddType video/fli .fli 
AddType video/x-fli  .fli 
AddType video/gl .gl 
AddType video/x-gl .gl 
AddType video/mpeg .m1v 
AddType video/mpeg .m2v 
AddType video/x-mpeg .mp2 
AddType video/x-mpeq2a .mp2 
AddType video/quicktime .moov 
AddType video/quicktime .mov 
AddType video/x-sgi-movie .movie 
AddType video/mpeg .mp2 
AddType video/mpeg .mpa 
AddType video/mpeg .mpe 
AddType video/mpeg .mpeg 
AddType video/mpeg .mpg 
AddType video/quicktime .qt 
AddType video/x-qtc .qtc 
AddType video/quicktime mov .qt

# MIME-  
AddType image/vnd.wap.wmbp .wbmp
AddType image/x-bmp .bmp
AddType image/x-epoc-mbm .mbm
AddType image/vnd.nok-3dscreensaver .n3a
AddType image/vnd.nok-oplogo-colornokia-op-logo .nok
AddType image/jpeg .jpg
AddType image/jpeg .jpeg
AddType image/png .png 

# MIME-  
AddType application/x-compressed .zip
AddType application/x-zip-compressed .zip
AddType application/zip .zip
AddType multipart/x-zip .zip
AddType application/zip .7z
AddType application/x-rar .rar
AddType application/x-bzip2 .boz 
AddType application/x-bzip .bz 
AddType application/x-bzip2 .bz2 
AddType application/x-gzip .gzip 
AddType multipart/x-gzip .gzip 
AddType application/x-gzip .gz
AddType application/x-compressed .gz 
AddType application/x-gtar .gtar
AddType application/x-tar .tar 
AddType application/gnutar .tgz 
AddType application/x-compressed .tgz 
AddType application/x-tar .hid 

# MIME- 
AddType application/x-shockwave-flash .swf
AddType application/vnd.sonyericsson.mms-template .tpl
AddType application/vnd.eri.thm .thm
AddType archive/vnh.nth .nth
AddType application/vnd.siemens-mp.theme .sdt
AddType application/vnd.siemens-mp.skin .scs
#########################################
#           # 
#            #
#########################################
<Files ~ "template|local">
   Order allow,deny
    Deny from all
</Files>
<Files ~ ".(dat|priv|prof)$">
   Order allow,deny
   Deny from all
</Files>
################################################################################################################
#           wap-motor    
################################################################################################################
php_value error_reporting 7
php_value register_globals 0 
php_value session.use_trans_sid 1 
php_value safe_mode_gid 1
php_value safe_mode_include_dir 1
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0 
php_value file_uploads 1
php_value display_errors 1
DirectoryIndex index.php
AddDefaultCharset UTF-8
Options -Indexes
php_flag disable_functions passthru,system,shell_exec,popen	
##########################################
#  c     #
##########################################
ErrorDocument 400 ../pages/error.php?error=400	
ErrorDocument 401 ../pages/error.php?error=401
ErrorDocument 402 ../pages/error.php?error=402	
ErrorDocument 403 ../pages/error.php?error=403
ErrorDocument 404 ../pages/error.php?error=404
ErrorDocument 500 ../pages/error.php?error=500
ErrorDocument 502 ../pages/error.php?error=502	
##########################################
#   mod Rewrite       #
#           #
# index.php?p=dir&f=file , dir/file.mot #
##########################################
RewriteEngine Off
##################################################################################################################
#    : 'Options FollowSymLinks'   
#    .       mod_rewrite,   
#           .htaccess   
#      ,    (  #  
#  ),       .   ,
#       , ..     . 
###################################################################################################################
###Options +FollowSymlinks

####################################################################################
#    ,   URL web-
#        .
#     MOTOR ( "/"    )
####################################################################################
###RewriteBase /

#############################
#     mot #
#############################
RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]+).mot(/?)+$ ?p=$1&f=$2 [QSA,L]

#########################################################################
#        #
#########################################################################                    
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} http:.*\/.*\/ [OR]
RewriteCond %{QUERY_STRING} ..*\/ [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]	