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

WordPress Trac noreply at wordpress.org
Sat Feb 22 19:03:52 UTC 2014


#20746: Accessing non-existing theme folder in Network install gives 500 error
---------------------------+------------------------------
 Reporter:  arkimedia      |       Owner:
     Type:  defect (bug)   |      Status:  reopened
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  3.3.2
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  multisite
---------------------------+------------------------------

Comment (by wpmuguru):

 > The key is really noticing the difference between "wp-
 content/uploads/2013/10/test.jpg" and "/wp-
 content/uploads/2013/10/test.jpg" - with or without a beginning slash - so
 Apache doesn't go looking for a file outside of the webroot.

 If you do not have the `RewriteBase /` at the beginning of your .htaccess
 (per standard WP .htaccess) then

 `RewriteCond %{REQUEST_URI} ^/wp-(content|admin|includes).*$`

 would work. If you do have it then the requested URL would need to be
 `http://example.com//wp-content....` for the rewrite condition to be met.

 Since the standard rewrite rules for the .htaccess are for a rewrite base
 of / (or /some-path/) then the correct rule is

 `RewriteCond %{REQUEST_URI} ^wp-(content|admin|includes).*$`

 If you are missing the RewriteBase that would explain why the rule Pippin
 posted above didn't work for you.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20746#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list