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

WordPress Trac noreply at wordpress.org
Thu Aug 17 09:05:50 UTC 2023


#20746: Accessing non-existing theme folder in Network install gives 500 error
-------------------------------------------------+-------------------------
 Reporter:  arkimedia                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Rewrite Rules                        |     Version:  3.3.2
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-patch dev-         |     Focuses:  multisite
  feedback 2nd-opinion                           |
-------------------------------------------------+-------------------------

Comment (by germanoronoz):

 Replying to [comment:61 germanoronoz]:
 > Replying to [comment:60 wpmuguru]:
 > > > Does anyone have a clue on how to solve this point?
 > >
 > > The WordPress virtual/pretty permalink system depends on the web
 server passing any non-existent URLs on to WP to handle. The now outdated
 patch I submitted 10+ years ago addresses the rewrite loop that occurs in
 subfolder multisite so that the result is consistent with a non-existent
 static resource in single site. The ticket is a bug not an enhancement
 request.
 > >


 Hello,

 Thanks for your answer.

 I was talking about a **subdomain** install, in regard to comment #51 on
 this thread:


 {{{
 RewriteRule ^(wp-(content|admin|includes).*) - [L]
 RewriteRule ^(.*\.php)$ - [L]
 }}}


 This condition is what is not being met:

 \\ The WordPress virtual/pretty permalink system depends on the web server
 passing any non-existent URLs on to WP to handle.

 Those urls are being passed to Apache directly.

 It's crazy a 10 year old bug like this is not yet resolved.

 Hopefully anyone can fix this soon.

 Regards!

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


More information about the wp-trac mailing list