Make WordPress Core

Opened 4 years ago

#40322 new defect (bug)

Wordpress Network htaccess rewrite causes internal loop

Reported by: davidsword Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: Rewrite Rules Keywords:
Focuses: multisite Cc:


Spam bots and bad links flood /wp-content/* with bad requests causing 404. In a clean Wordpress network (on Ubuntu 16.04.2, Apache 2.4.18, PHP 7.1) These 404's go in a redirect loop, flooding error logs.

There's a very well written and detailed explanation of problem and an offered solution here:


in short, he suggests adding

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


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

or removing the question mark in the RewriteRule solve this problem.

Change History (0)

Note: See TracTickets for help on using tickets.