#  .htaccess
#     Web- Apache,  
#  TextCMS  
#          ,
#      500.
#       ,
#    ,    
#  .
#       #
#  ,    ,    .htaccess    ,   TextCMS

#       CAPTCHA
<Files files/config.*>
Order deny,allow
deny from all
</Files>
<Files files/captcha*.*>
Order deny,allow
deny from all
</Files>

#     URL
#            cookies.
# php_value session.use_trans_sid "1"
#    URL (    HTML 4.01)
php_value arg_separator.output "&amp;"

#        HTTP- (  )
# php_value magic_quotes_gpc "0" # , ..    PHP     
php_value register_globals "0"
php_value register_long_arrays "0"

#  MIME-,     Java-
# (  TextCMS  ,     )
AddType application/vnd.ms-cab-compressed .cab
AddType application/java-archive .jar

#  RewiteEngine   Humar Readable URLs
#    mod_rewrite  
#
#  RewriteBase    URL   /  ,
#      .
# ,      /cms/,  
# RewriteBase /cms

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
</IfModule>

#####     Apache 2.x #############################################
#   
<IfModule mod_setenvif.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript

#  "" 
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch Konqueror no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

Header append Vary User-Agent
</IfModule>

#      
<FilesMatch .*\.(css|js|gif|jpg|jpeg|png)$>
    Header append Cache-Control public,max-age=3600
</FilesMatch>

#   ETag
FileETag MTime Size