[wp-trac] [WordPress Trac] #19796: Multisite installs should work with WordPress in a subdirectory

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 5 20:39:05 UTC 2012


#19796: Multisite installs should work with WordPress in a subdirectory
-------------------------------------+-----------------------------
 Reporter:  markjaquith              |       Owner:  markjaquith
     Type:  task (blessed)           |      Status:  new
 Priority:  high                     |   Milestone:  Future Release
Component:  Multisite                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 Here are the pieces to making Multisite work in a subdirectory:

 1) load files or register external in a subdirectory - let's say
 "wordpress"[[BR]]
 2) move index.php to DOCUMENT_ROOT[[BR]]
 3) move wp-config.php to DOCUMENT_ROOT[[BR]]
 4) edit .htaccess to internal-redirect ABSPATH files to the proper place

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

 5) Set define( 'WP_CONTENT_DIR' ) if it is different that ABSPATH (if
 WordPress is in a subdir, it is)[[BR]]
 6) Edit index.php to point at /wordpress/index.php instead of ./index.php

 items # 1-4 have to happen manually[[BR]]
 items # 5-6 can happen automagically in my patch (attaching)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19796#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list