| [ Index ] |
PHP Cross Reference of Joomla 1.5.25 |
[Summary view] [Print] [Text view]
1 ## 2 # @version $Id: htaccess.txt 21064 2011-04-03 22:12:19Z dextercowley $ 3 # @package Joomla 4 # @copyright Copyright (C) 2005 - 2010 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 # Block out any script trying to set a mosConfig value through the URL 42 RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] 43 # Block out any script trying to base64_encode data within the URL 44 RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] 45 # Block out any script that includes a <script> tag in URL 46 RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] 47 # Block out any script trying to set a PHP GLOBALS variable via URL 48 RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] 49 # Block out any script trying to modify a _REQUEST variable via URL 50 RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 51 # Return 403 Forbidden header and show the content of the root homepage 52 RewriteRule .* index.php [F] 53 # 54 ########## End - Rewrite rules to block out some common exploits 55 56 57 ########## Begin - Custom redirects 58 # 59 # If you need to redirect some pages, or set a canonical non-www to 60 # www redirect (or vice versa), place that code here. Ensure those 61 # redirects use the correct RewriteRule syntax and the [R=301,L] flags. 62 # 63 ########## End - Custom redirects 64 65 66 # Uncomment following line if your webserver's URL 67 # is not directly related to physical file paths. 68 # Update Your Joomla! Directory (just / for root) 69 70 # RewriteBase / 71 72 73 ########## Begin - Joomla! core SEF Section 74 # 75 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 76 # 77 # If the requested path and file is not /index.php and the request 78 # has not already been internally rewritten to the index.php script 79 RewriteCond %{REQUEST_URI} !^/index\.php 80 # and the request is for root, or for an extensionless URL, or the 81 # requested URL ends with one of the listed extensions 82 RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC] 83 # and the requested path and file doesn't directly match a physical file 84 RewriteCond %{REQUEST_FILENAME} !-f 85 # and the requested path and file doesn't directly match a physical folder 86 RewriteCond %{REQUEST_FILENAME} !-d 87 # internally rewrite the request to the index.php script 88 RewriteRule .* index.php [L] 89 # 90 ########## End - Joomla! core SEF Section
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Nov 14 16:47:20 2011 | Cross-referenced by PHPXref 0.7.1 |