[wpmu-trac] Re: [WordPress MU Trac] #540: Tighten 'files/' RewriteRule

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Jan 10 07:53:16 GMT 2008


#540: Tighten 'files/' RewriteRule
------------------------+---------------------------------------------------
 Reporter:  jdub        |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  normal      |    Milestone:          
Component:  component1  |      Version:          
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by jdub):

 Oh man! This actually breaks one of my plugins, which puts user-editable
 files in the upload directory (blogs.dir/N), but not in the YYYY/MM
 structure. I break my own heart.

 Another option, and my first solution:

 {{{
 RewriteCond %{REQUEST_URI} !^.*plugins/.*$
 RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/540#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list