[wpmu-trac] [WordPress MU Trac] #1167: Requests for URLs that contain ".php" aren't routed to WPMU

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Nov 30 23:24:52 UTC 2009


#1167: Requests for URLs that contain ".php" aren't routed to WPMU
--------------------------+-------------------------------------------------
 Reporter:  jamescollins  |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:          
Component:  General       |     Version:  2.8.2   
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------

Comment(by jamescollins):

 Yes, basically we've migrated a client's existing site (which used /*.php
 file URLs) to a WPMU site, and we were planning in using the redirection
 plugin (http://wordpress.org/extend/plugins/redirection/) to 301 redirect
 the old /*.php URLs to /*/.

 However the plugin doesn't work because the request isn't routed to WPMU
 at all.

 This approach has worked fine for normal WP sites though.

 Perhaps instead of blindly rewriting *.php to *, we need to explicitly
 list all the possible root WP .php files instead?

 All the files in the root folder are wp-*.php, so they are covered by the
 other rule. The only other one seems to be xmlrpc.php, which could have a
 specific rule added for it.

 ie something like (untested):

 {{{
 RewriteRule  ^([_0-9a-zA-Z-]+/)?(xmlrpc\.php)$ /xmlrpc.php [L]
 }}}

 Instead of

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

 Thoughts?

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1167#comment:4>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list