[wp-trac] [WordPress Trac] #20746: Accessing non-existing theme folder in Network install gives 500 error
WordPress Trac
noreply at wordpress.org
Mon May 18 16:55:51 UTC 2020
#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 |
-------------------------------------------------+-------------------------
Changes (by bananastalktome):
* keywords: needs-testing has-patch => needs-testing has-patch dev-
feedback 2nd-opinion
Comment:
Similar to the [comment:36 comment] by @thomaswm, for our subdomain
install changing the `$1` replacement with a dash for both of the
following rules seems to work:
{{{
RewriteRule ^(wp-(content|admin|includes).*) - [L]
RewriteRule ^(.*\.php)$ - [L]
}}}
I am not sure if this is truly a valid fix, but feel that an Apache
generated 404 page rather than WordPress one (while maybe not ideal) is
still better than the current long-standing behavior of an Apache
generated 500 page and internal redirect loop.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20746#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list