root/tags/1.5.1/htaccess.dist

Revision 1256, 0.6 kB (checked in by donncha, 7 months ago)

Added mod_security disabling code

  • Property svn:eol-style set to native
Line 
1 RewriteEngine On
2 RewriteBase BASE/
3
4 #uploaded files
5 RewriteRule ^(.*/)?files/$ index.php [L]
6 RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
7
8 # add a trailing slash to /wp-admin
9 RewriteCond %{REQUEST_URI} ^.*/wp-admin$
10 RewriteRule ^(.+)$ /$1/ [R=301,L]
11
12 RewriteCond %{REQUEST_FILENAME} -f [OR]
13 RewriteCond %{REQUEST_FILENAME} -d
14 RewriteRule . - [L]
15 RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
16 RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
17 RewriteRule . index.php [L]
18
19 <IfModule mod_security.c>
20 <Files async-upload.php>
21 SecFilterEngine Off
22 SecFilterScanPOST Off
23 </Files>
24 </IfModule>
25
Note: See TracBrowser for help on using the browser.