iTx Technologies offre gratuitement
cet espace pour Joomla !

title

Body

[fermer]

/ -> htaccess.txt (source)

   1  ##
   2  # @version $Id: htaccess.txt 13415 2009-11-03 15:53:25Z ian $
   3  # @package Joomla
   4  # @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
   5  # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
   6  # Joomla! is Free Software
   7  ##
   8  
   9  
  10  #####################################################
  11  #  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
  12  #
  13  # The line just below this section: 'Options +FollowSymLinks' may cause problems
  14  # with some server configurations.  It is required for use of mod_rewrite, but may already
  15  # be set by your server administrator in a way that dissallows changing it in
  16  # your .htaccess file.  If using it causes your server to error out, comment it out (add # to
  17  # beginning of line), reload your site in your browser and test your sef url's.  If they work,
  18  # it has been set by your server administrator and you do not need it set here.
  19  #
  20  #####################################################
  21  
  22  ##  Can be commented out if causes errors, see notes above.
  23  Options +FollowSymLinks
  24  
  25  #
  26  #  mod_rewrite in use
  27  
  28  RewriteEngine On
  29  
  30  ########## Begin - Rewrite rules to block out some common exploits
  31  ## If you experience problems on your site block out the operations listed below
  32  ## This attempts to block the most common type of exploit `attempts` to Joomla!
  33  #
  34  ## Deny access to extension xml files (uncomment out to activate)
  35  #<Files ~ "\.xml$">
  36  #Order allow,deny
  37  #Deny from all
  38  #Satisfy all
  39  #</Files>
  40  ## End of deny access to extension xml files
  41  RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
  42  # Block out any script trying to base64_encode crap to send via URL
  43  RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
  44  # Block out any script that includes a <script> tag in URL
  45  RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  46  # Block out any script trying to set a PHP GLOBALS variable via URL
  47  RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  48  # Block out any script trying to modify a _REQUEST variable via URL
  49  RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  50  # Send all blocked request to homepage with 403 Forbidden error!
  51  RewriteRule ^(.*)$ index.php [F,L]
  52  #
  53  ########## End - Rewrite rules to block out some common exploits
  54  
  55  #  Uncomment following line if your webserver's URL
  56  #  is not directly related to physical file paths.
  57  #  Update Your Joomla! Directory (just / for root)
  58  
  59  # RewriteBase /
  60  
  61  
  62  ########## Begin - Joomla! core SEF Section
  63  #
  64  RewriteCond %{REQUEST_FILENAME} !-f
  65  RewriteCond %{REQUEST_FILENAME} !-d
  66  RewriteCond %{REQUEST_URI} !^/index.php
  67  RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
  68  RewriteRule (.*) index.php
  69  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  70  #
  71  ########## End - Joomla! core SEF Section


Generé en: Tue Mar 2 18:10:43 2010 | Cross-referenced par PHPXref 0.7