WordPress.org

Ready to get started?Download WordPress

Forums

Sites in /subdir/site1 dir - two levels in (7 posts)

  1. yovanoff
    Member
    Posted 3 years ago #

    I have a multisite install up and running fine, with the primary site living at:

    http://www.example.com/

    I want to set up all additional sites to live at

    http://www.example.com/blogs/site1
    http://www.example.com/blogs/site2
    http://www.example.com/blogs/site3

    The default settings seem to only allow me to create sites in the top level directory - is there a way to create all of them within a sub-directory?

    Despite much finicking with the siteurl and home settings for each sub-site, I'm unable to get this working.

  2. You'd have to install it in the /blogs/ folder on the server to get URLs like that.

  3. yovanoff
    Member
    Posted 3 years ago #

    Hmm, the problem is I want the main site to also serve up pages under just example.com/

    (So there would be pages like http://example.com/about etc.)

  4. brianhinkley
    Member
    Posted 3 years ago #

    I'm looking for the answer to this question also.

    This is one area where I think WPMU may have gotten it a little bit wrong. The root site when I create a new post puts "/blog/" in the URL. I was able to remove this on the options.php settings page under pemalinks.

    I was thinking that I could change things with the permalinks to add /blogs/ to the add on sites. That doesn't work because the sitename still comes first.

    The main site is.... Well.... the main site not a blog. I would like there to be no doubt whether or not someone is looking at the main site or one of the blogs.

    I know that there is a reason as to not cause cause conflict of some sort. This doesn't seem valid though because adding pages doesn't follow the same rule.

  5. @yovanoff - I've done what you want with a single WP install in the root and a multi one in the /blog/ directory. the visitor has no idea.

  6. brianhinkley
    Member
    Posted 3 years ago #

    @Andrea_r with two installs the users wouldn't be members of the main root install. This does get me thinking that it would be nice to add child sites to the created sites. I could just add a site called blogs and add the new sites to that.

    Maybe I should consider switching to the sub-domain option. Is there any pros or cons that should be considered with that configuration?

  7. @Andrea_r with two installs the users wouldn't be members of the main root install.

    They can if you do both installs in the same db and share user tables.

    This does get me thinking that it would be nice to add child sites to the created sites. I could just add a site called blogs and add the new sites to that.

    If you wanted some nesting, you could use a multi-network plugin. But that doesn't give nested URLs. Well, it does with subdomains, not folders.

    Maybe I should consider switching to the sub-domain option. Is there any pros or cons that should be considered with that configuration?

    Only that you'll blow away all your current blogs.

Topic Closed

This topic has been closed to new replies.

About this Topic