• Hello! After much ado, I’ve managed to install WordPress multisite so that the WP files are stored in /wp, but site addresses are created at my server root (eg. me.com/site1, me.com/site2 etc.)

    However! I was led to understand that I should be able to create sites at me.com/sub/site1 or me.com/sub/directory/site2 as well. When I try to create them, I get an error message because the path contains a slash. What do I need to do in order to create these sites in the locations they are meant to be in?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think you are confusing the multisite concept of subsites being divisible by ‘subdirectories’ with any actual files existing in subdirectories in the webroot. Nothing changes in the file system that you might notice as the term subdirectory in this usage is just a change in the URL.

    On a subdirectory install, all new sites will be created as subdirectories of the root domain name but there aren’t any subdirectories created physically on your server as you might otherwise expect.

    This is all done in the mapping system where a new site will be ‘mapped’ to the ‘domain with subdirectories’ you want the site to ‘appear’ as. Thus you might have something like…

    https://WWW.MyWayCoolwebsite.Com/ICantBeleiveThisWorks/

    And even

    https://WWW.MyWayCoolwebsite.Com/ICantBeleiveThisWorks/AsWell/

    But you won’t find any file structure representing that layout under webroot.


    The subdomain and subdirectory install types denote the way WordPress considers the way the new site is to be named before mapping takes over and these two ‘terms’ allow some particular magic with sites as they are made under user controls as either a subdomain existing via a ‘wildcard’ subdomain or else what might appear as a subdirectory under the root domain.

    The Domain Mapping System then extends those naming conventions greatly.

    Thread Starter rmaxfiel

    (@rmaxfiel)

    To be clear, what I want to do is have:

    – one site mysite.com/plants; users FlowerEnthusiast and Gardener6 have permissions on this site
    – one site mysite.com/animals/zoo; users Zebra and Panda have permissions on this site
    – one site mysite.com/animals/aquarium; users WhalesAreGreat and DolphinFan have permissions on this site

    Is this possible? And if so, how can I create it when WordPress rejects these paths as invalid at the site creation stage?

    Thread Starter rmaxfiel

    (@rmaxfiel)

    @jnashhawkins any thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisites at different directory levels’ is closed to new replies.