WordPress.org

Ready to get started?Download WordPress

Forums

MUltisite with own Directory (4 posts)

  1. mihai
    Member
    Posted 4 years ago #

    On this page: http://codex.wordpress.org/Create_A_Network
    It says it's not possible to have wordpress installed in it's own directory and create a network because it would interfere with the lookup of blogs directory. However I find this false because if you use subdomains you shouldn't have this interference.
    So I gave it a try and it seems to be working.
    I had to modify network.php so it would not do that check against the siteurl/home url then when I created the network it said I would have to use subdirectories because of this ... I said fine and continued then
    I went to wp-config.php and set SUBDOMAIN_INSTALL to true.
    I noticed the main domain was working fine but when I created a subdomain wordpress insisted to set the siteurl the same as it's home url so it was not working. If I tried to set the siteurl to the real url ( domain/wordpressdir ) , wordpress would just replace it with the one without wordpressdir so I went to the database and changed it dirrectly without wordpress and now it's all working well.

    Isn't this a bug? WordPress should be able to easily idetify a site by it's subdomain and if that's set up ( SUBDOMAIN_INSTALL ) then it should allow me to install wordpress in a subdirectory.

  2. Andrew Nacin
    Lead Developer
    Posted 4 years ago #

    The restrictions are in place simply because Multisite currently does not support home url != siteurl out of the box. It didn't work in MU either and we did not expand MS's capabilities much during the merge.

    Cross-referencing:

    http://core.trac.wordpress.org/ticket/12814
    http://core.trac.wordpress.org/ticket/12736
    http://core.trac.wordpress.org/ticket/12735

  3. mihai
    Member
    Posted 4 years ago #

    Thanks.
    Of all these bugs it seems like the last one is the only that could really affect the way a blog works. The first two are just problems in admin that I already noticed.
    So I guess I shouldn't have amuch to worry about with running my setup like this.

  4. mihai
    Member
    Posted 4 years ago #

    I even managed to get domain mapping to work with very few modifications to the plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic