Skip to content
Newer
Older
100644 77 lines (67 sloc) 3.04 KB
c52c934 @LouisLandry Testing...
LouisLandry authored May 28, 2009
1 ##
de4a567 Moved LICENSE.php out of the installation folder and renamed to LICEN…
Rob Schley authored Jun 1, 2009
2 # @package Joomla
83a0c2f @infograf768 ^ Updating Copyright
infograf768 authored Jan 12, 2012
3 # @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
de4a567 Moved LICENSE.php out of the installation folder and renamed to LICEN…
Rob Schley authored Jun 1, 2009
4 # @license GNU General Public License version 2 or later; see LICENSE.txt
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
5 ##
6
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
7 ##
8 # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
9 #
10 # The line just below this section: 'Options +FollowSymLinks' may cause problems
11 # with some server configurations. It is required for use of mod_rewrite, but may already
12 # be set by your server administrator in a way that dissallows changing it in
13 # your .htaccess file. If using it causes your server to error out, comment it out (add # to
14 # beginning of line), reload your site in your browser and test your sef url's. If they work,
15 # it has been set by your server administrator and you do not need it set here.
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
16 ##
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
17
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
18 ## Can be commented out if causes errors, see notes above.
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
19 Options +FollowSymLinks
20
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
21 ## Mod_rewrite in use.
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
22
23 RewriteEngine On
24
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
25 ## Begin - Rewrite rules to block out some common exploits.
26 # If you experience problems on your site block out the operations listed below
27 # This attempts to block the most common type of exploit `attempts` to Joomla!
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
28 #
75dff59 @eddieajau Fixed issue [#22246] Remove potty mouth language from htaccess (Brian…
eddieajau authored Sep 6, 2010
29 # Block out any script trying to base64_encode data within the URL.
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
30 RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
31 # Block out any script that includes a <script> tag in URL.
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
32 RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
33 # Block out any script trying to set a PHP GLOBALS variable via URL.
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
34 RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
35 # Block out any script trying to modify a _REQUEST variable via URL.
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
36 RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
37 # Return 403 Forbidden header and show the content of the root homepage
38 RewriteRule .* index.php [F]
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
39 #
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
40 ## End - Rewrite rules to block out some common exploits.
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
41
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
42 ## Begin - Custom redirects
43 #
44 # If you need to redirect some pages, or set a canonical non-www to
45 # www redirect (or vice versa), place that code here. Ensure those
46 # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
47 #
48 ## End - Custom redirects
49
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
50 ##
51 # Uncomment following line if your webserver's URL
52 # is not directly related to physical file paths.
53 # Update Your Joomla! Directory (just / for root).
54 ##
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
55
56 # RewriteBase /
57
a0d21d4 Updated robots.txt.
Gergo Erdosi authored Aug 12, 2009
58 ## Begin - Joomla! core SEF Section.
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
59 #
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
60 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
61 #
62 # If the requested path and file is not /index.php and the request
63 # has not already been internally rewritten to the index.php script
64 RewriteCond %{REQUEST_URI} !^/index\.php
65 # and the request is for something within the component folder,
66 # or for the site root, or for an extensionless URL, or the
67 # requested URL ends with one of the listed extensions
e0506b0 @dextercowley [#25550] com_contact vCard link not using JRoute::_() which causes do…
dextercowley authored Apr 7, 2011
68 RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
69 # and the requested path and file doesn't directly match a physical file
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
70 RewriteCond %{REQUEST_FILENAME} !-f
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
71 # and the requested path and file doesn't directly match a physical folder
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
72 RewriteCond %{REQUEST_FILENAME} !-d
f7d1b00 # [#22425] Improve .htaccess rewrite efficency. Thanks Ian Galpin.
Jean-Marie Simonet authored Mar 24, 2011
73 # internally rewrite the request to the index.php script
74 RewriteRule .* index.php [L]
83939b8 Imported the new trunk.
Rob Schley authored May 27, 2009
75 #
011a2f0 @chdemko Deleting remaining "$ Id $"
chdemko authored Jan 13, 2012
76 ## End - Joomla! core SEF Section.
Something went wrong with that request. Please try again.