root/tags/1.5-rc1/htaccess.dist

Revision 1211, 489 bytes (checked in by donncha, 9 months ago)

Add a trailing slash to URLs ending in /wp-admin, fixes #351, props deanbag

  • 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]
Note: See TracBrowser for help on using the browser.