WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11994 closed defect (bug) (fixed)

Rewrite rules cause some URLs to fail

Reported by: wpmuguru Owned by: wpmuguru
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Multisite Keywords:
Focuses: Cc:

Description (last modified by wpmuguru)

MU Trac Ticket: http://trac.mu.wordpress.org/ticket/215

The following lines are not necessary with a vhost install and $base = '/' :

RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

They could conduct to an infinite rewrite loop and lead the web server to a 500 error.

Change History (6)

comment:1 wpmuguru4 years ago

  • Description modified (diff)

comment:2 wpmuguru4 years ago

  • Description modified (diff)

comment:3 wpmuguru4 years ago

  • Owner set to wpmuguru
  • Status changed from new to accepted

I have rules for nginx that fix this. I have to convert to apache and test.

comment:4 wpmuguru4 years ago

(In [12884]) change wp- rewrite more specific rewrite rule, see #11994

comment:5 nacin4 years ago

  • Milestone changed from Unassigned to 3.0

comment:6 ocean904 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

For problems with the fix we can use #12136.

Note: See TracTickets for help on using tickets.