[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 Dec 14 00:27:06 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: has-patch
--------------------------+-------------------------------------------------
Changes (by jamescollins):
* keywords: => has-patch
Comment:
I have attached a patch that (I think) might solve the problem.
The patch uses the logic I mentioned in comment:4.
I only have subdomain WPMU installs, so I haven't tested it much against a
subdirectory install, but the following URLs seem to work:
{{{
http://example.com/blog15/wp-admin/
http://example.com/blog15/wp-admin/index.php
http://example.com/blog15/xmlrpc.php
http://example.com/wp-admin/
http://example.com/wp-admin/index.php
http://example.com/xmlrpc.php
}}}
Requests for the other wp-*.php files are rewritten correctly with the
existing rule.
The patch effectively means that any request for http://example.com/*.php
(where *.php does not exist), is routed to WPMU's 404 handling.
Thoughts?
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/1167#comment:6>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list