root/trunk/htaccess.dist

Revision 1429, 0.6 kB (checked in by donncha, 2 months ago)

No need for / prefix on rewrite rule, fixes #702, props kipit

  • 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 RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
7 RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
8
9 # add a trailing slash to /wp-admin
10 RewriteCond %{REQUEST_URI} ^.*/wp-admin$
11 RewriteRule ^(.+)$ $1/ [R=301,L]
12
13 RewriteCond %{REQUEST_FILENAME} -f [OR]
14 RewriteCond %{REQUEST_FILENAME} -d
15 RewriteRule . - [L]
16 RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
17 RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
18 RewriteRule . index.php [L]
19
20 <IfModule mod_security.c>
21 <Files async-upload.php>
22 SecFilterEngine Off
23 SecFilterScanPOST Off
24 </Files>
25 </IfModule>
26
Note: See TracBrowser for help on using the browser.