diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-21 13:11:19 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-21 13:11:19 +0000 |
commit | cafa7fe7871b006b2c3478c1e2203e3dfa140dbc (patch) | |
tree | 4c3c37077313a737087746f7a9610a36820ef7e2 /htaccess.dist | |
parent | c2096dd195219156d14a4efa95280f9ab104963c (diff) | |
download | wordpress-mu-cafa7fe7871b006b2c3478c1e2203e3dfa140dbc.tar.gz wordpress-mu-cafa7fe7871b006b2c3478c1e2203e3dfa140dbc.tar.xz wordpress-mu-cafa7fe7871b006b2c3478c1e2203e3dfa140dbc.zip |
Check that the file exists first. Fixes #215.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@929 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'htaccess.dist')
-rw-r--r-- | htaccess.dist | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/htaccess.dist b/htaccess.dist index 0f14905..7e5f5e7 100644 --- a/htaccess.dist +++ b/htaccess.dist @@ -9,6 +9,10 @@ RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule . - [L] +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] |