[wp-trac] [WordPress Trac] #20746: Accessing non-existing theme folder in Network install gives 500 error
WordPress Trac
noreply at wordpress.org
Wed Mar 7 12:53:33 UTC 2018
#20746: Accessing non-existing theme folder in Network install gives 500 error
-------------------------------------+-----------------------------
Reporter: arkimedia | Owner:
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 | Focuses: multisite
-------------------------------------+-----------------------------
Comment (by wpmuguru):
Replying to [comment:43 dchenko]:
> But this does not simply remove the question markâyou're removing the
capturing parentheses and changing the $2 to a $1, which makes the string
"+/" required as part of the URL in front of wp-* even though it was
optional before.
The leading path being optional is the problem the patch is fixing. Apache
loops through the rewrite rules until there are no more matches. If the
leading path is optional then when the rule matches on the first pass &
the leading path is removed, the rule continues to match on subsequent
rewrite passes resulting in a rewrite loop.
@jeremyfelt My patch restores the rules to what was merged from WordPress
MU about 8 years ago.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20746#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list