##
# @version $Id: htaccess.txt 5973 2006-12-11 01:26:33Z robs $
# @package Joostina
# @copyright   (C) 2007 Joostina Team.
# @localized   (C) 2005 Joom.Ru -   Joomla!
# @copyright   (C) 2005 Open Source Matters.   .
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! -   .
# @translator Sourpuss (Sourpuss@mail.ru)
##
# -----------------======= !!! =======----------------------------
# -------   CHMOD 644    ------------------
# ------------------------------------------------------------------------
#      .  , .

AddDefaultCharset WINDOWS-1251

#    -    PHP
#       Joomla.
#   (  - #)  ,
#        
#    Joomla.
#    500  ,  , 
#  ,     php_value.

#  php_value register_globals 0
#  php_value display_errors 0
#  php_value file_uploads 1
#  php_value magic_quotes_gpc 1
#  php_value magic_quotes_runtime 0


#        :
#   Windows - c:/temp
#   UNIX  - /tmp

#           

#   ,    
#  php_value session.save_path c:/temp


#####################################################
#   ,     
#
#    : 'Options +FollowSymLinks'   
#    .      Apache mod_rewrite,   
#           .htaccess   .
#      ,    (  # 
#  ),        SEF-.   ,
#       , ..     .
#
#       SEF,   . ,  
#  ( )    #.      #   .
#  ,    ,       #
#
#   SEF,    SEF.  
#     RewriteCond    , 
#         'component'  'content'
#
#      SEF  Core SEF,  
#     'SEF    Core SEF'
#
#####################################################

#####      URL  #####
#     SMF,   
#    ,    URL 
#
#    ' SEF',  'SEF    Core SEF' :
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ## -  ##
#   .    Joomla/Mambo   ,
#        .
# ,   Joomla/Mambo    '/test/',
#  :
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ## -  ##
# :
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ## -  ##
#
#####################################################


##    ,    .   .
#Options +FollowSymLinks

#
#   mod_rewrite

RewriteEngine On


#    ,  URL  web-
#        .
#     Joomla ( "/"    )

# RewriteBase /


##########    SEF
##########        SEF Joomla
##  (RewriteCond)       
##        'content'  'component'
##      ,    .
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] 	## -  ##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php
#
##########    SEF



##########   SEF    Core SEF
##########   ,    SEF-  OpenSEF, 404_SEF, 404SEFx, JoomSEF, SEF Advance  ..
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] 	## -  ##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
##########   SEF    Core SEF



##########  -       
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
##########  -   (Rewrite rules)    
