[wp-trac] [WordPress Trac] #20746: Accessing non-existing theme folder in Network install gives 500 error

WordPress Trac noreply at wordpress.org
Wed Oct 2 16:28:38 UTC 2013


#20746: Accessing non-existing theme folder in Network install gives 500 error
--------------------------+-----------------------
 Reporter:  arkimedia     |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Multisite     |     Version:  3.3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------
Changes (by jrfoell):

 * cc: justin@… (added)
 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 Here's how to reproduce:

 1. Create a sub-directory multi-site installation per normal
 2. Try to load a fictitious file from wp-content such as:
 http://example.com/wp-content/uploads/2013/10/test.jpg
 3. Observe "500 Internal Server Error" due to "Request exceeded the limit
 of 10 internal redirects due to probable configuration error."

 I believe this is because after this rule is applied:

 RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]

 Apache tries to rewrite (internally) from "wp-
 content/uploads/2013/10/test.jpg" to "/wp-
 content/uploads/2013/10/test.jpg" with a beginning slash. Then the
 aforementioned rule gets applied again because it matches - creating a
 loop.

 Expected result: 404 Page

--
Ticket URL: <http://core.trac.wordpress.org/ticket/20746#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list