[ Index ] |
|
Code source de Joomla 1.0.13 |
1 ## 2 # @version $Id: htaccess.txt 5975 2006-12-11 01:26:33Z robs $ 3 # @package Joomla 4 # @copyright Copyright (C) 2005 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 # Only use one of the two SEF sections that follow. Lines that can be uncommented 21 # (and thus used) have only one #. Lines with two #'s should not be uncommented 22 # In the section that you don't use, all lines should start with # 23 # 24 # For Standard SEF, use the standard SEF section. You can comment out 25 # all of the RewriteCond lines and reduce your server's load if you 26 # don't have directories in your root named 'component' or 'content' 27 # 28 # If you are using a 3rd Party SEF or the Core SEF solution 29 # uncomment all of the lines in the '3rd Party or Core SEF' section 30 # 31 ##################################################### 32 33 ##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work ##### 34 # SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED 35 # OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING 36 # 37 # In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line: 38 # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## 39 # May need to be uncommented. If you are running your Joomla!/Mambo from 40 # a subdirectory the name of the subdirectory will need to be inserted into this 41 # line. For example, if your Joomla!/Mambo is in a subdirectory called '/test/', 42 # change this: 43 # RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## 44 # to this: 45 # RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes## 46 # 47 ##################################################### 48 49 50 ## Can be commented out if causes errors, see notes above. 51 Options +FollowSymLinks 52 53 # 54 # mod_rewrite in use 55 56 RewriteEngine On 57 58 59 # Uncomment following line if your webserver's URL 60 # is not directly related to physical file paths. 61 # Update Your Joomla!/MamboDirectory (just / for root) 62 63 # RewriteBase / 64 65 66 ########## Begin - Joomla! core SEF Section 67 ############# Use this section if using ONLY Joomla! core SEF 68 ## ALL (RewriteCond) lines in this section are only required if you actually 69 ## have directories named 'content' or 'component' on your server 70 ## If you do not have directories with these names, comment them out. 71 # 72 RewriteCond %{REQUEST_FILENAME} !-f 73 RewriteCond %{REQUEST_FILENAME} !-d 74 #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## 75 RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] 76 RewriteRule ^(content/|component/) index.php 77 # 78 ########## End - Joomla! core SEF Section 79 80 81 82 ########## Begin - 3rd Party SEF Section 83 ############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc 84 # 85 #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes## 86 #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC] 87 #RewriteCond %{REQUEST_FILENAME} !-f 88 #RewriteCond %{REQUEST_FILENAME} !-d 89 #RewriteRule (.*) index.php 90 # 91 ########## End - 3rd Party SEF Section 92 93 94 95 ########## Begin - Rewrite rules to block out some common exploits 96 ## If you experience problems on your site block out the operations listed below 97 ## This attempts to block the most common type of exploit `attempts` to Joomla! 98 # 99 # Block out any script trying to set a mosConfig value through the URL 100 RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] 101 # Block out any script trying to base64_encode crap to send via URL 102 RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] 103 # Block out any script that includes a <script> tag in URL 104 RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] 105 # Block out any script trying to set a PHP GLOBALS variable via URL 106 RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] 107 # Block out any script trying to modify a _REQUEST variable via URL 108 RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 109 # Send all blocked request to homepage with 403 Forbidden error! 110 RewriteRule ^(.*)$ index.php [F,L] 111 # 112 ########## End - Rewrite rules to block out some common exploits
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |