[wpmu-trac] [WordPress MU Trac] #247: Bug in .htaccess rule for
/files/ -> blogs.php
WordPress MU Trac
wpmu-trac at lists.automattic.com
Thu Feb 1 03:25:23 GMT 2007
#247: Bug in .htaccess rule for /files/ -> blogs.php
------------------------+---------------------------------------------------
Reporter: orvar | Owner: somebody
Type: defect | Status: new
Priority: low | Milestone: WPMU 1.0
Component: component1 | Version: 1.0
Severity: minor | Keywords:
------------------------+---------------------------------------------------
The rewrite rule for uploaded files in WordPressMU is like this.
{{{
#uploaded files
RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L]
}}}
Since the slash before "files" is not mandatory this rule will pass almost
all possible urls ending in "files" to blogs.php, e.g.
http://example.com/2007/02/01/uploading-files/
Fix:
{{{
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
}}}
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/247>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list