[Summary view] [Print] [Text view]
1 ## 2 # @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $ 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 # Block out any script trying to set a mosConfig value through the URL 35 RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] 36 # Block out any script trying to base64_encode crap to send via URL 37 RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] 38 # Block out any script that includes a <script> tag in URL 39 RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] 40 # Block out any script trying to set a PHP GLOBALS variable via URL 41 RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] 42 # Block out any script trying to modify a _REQUEST variable via URL 43 RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 44 # Send all blocked request to homepage with 403 Forbidden error! 45 RewriteRule ^(.*)$ index.php [F,L] 46 # 47 ########## End - Rewrite rules to block out some common exploits 48 49 # Uncomment following line if your webserver's URL 50 # is not directly related to physical file paths. 51 # Update Your Joomla! Directory (just / for root) 52 53 # RewriteBase / 54 55 56 ########## Begin - Joomla! core SEF Section 57 # 58 RewriteCond %{REQUEST_FILENAME} !-f 59 RewriteCond %{REQUEST_FILENAME} !-d 60 RewriteCond %{REQUEST_URI} !^/index.php 61 RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] 62 RewriteRule (.*) index.php 63 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] 64 # 65 ########## End - Joomla! core SEF Section 66 67
title
Description
Body
title
Description
Body
title
Description
Body
title
Body