WordPress.org

Ready to get started?Download WordPress

Forums

Multisite and non-root install (6 posts)

  1. hgrianevans
    Member
    Posted 1 year ago #

    Getting ready to install WP for multiple blogs in subdirectories on my site.

    I already have a non-blog site in my root directory. Can I install WP in, say, /blogs and have my various blogs as /blogs/blog1, /blogs/blog2, etc?

    If anyone's doing this under nginx any tips for the config?

  2. Sure, just install WP in the folder /blogs.

    Bear in mind, if you do this, the main site will have the post URLs of domain.com/blogs/blog/2011/01/postname

  3. hgrianevans
    Member
    Posted 1 year ago #

    Just to clarify since I started off generic:

    the main blog will end up with the post URL:

    domain.com/blogs/blog/2011/01/postname or do you mean

    domain.com/blogs/[the main blog name]/2011/01/postname

    the 2nd example I can live with...

  4. No no, the MAIN blog :)

    The main blog is blog1, but it's the default installation of WP.

    So if you install WordPress in domain.com/blogs/, then the main site is domain.com/blogs/ and the subsites are domain.com/blogs/site2 and so on.

    But the main blog, in order to not cause wacky errors with the subsites, puts a 'blog' slug before all your posts (not pages, just posts).

    Main site: domain.com/blogs
    Main site page: domain.com/blogs/pagename
    Main site post domain.com/blogs/blog/%permalink%

    Sub Site: domain.com/blogs/sitename
    Sub site page: domain.com/blogs/sitename/page
    Sub site post domain.com/blogs/sitename/%permalink%

  5. hgrianevans
    Member
    Posted 1 year ago #

    So I guess one way around that is to create a pagename that just lists the other blogs like a network directory and never make any posts in the main blog:

    Main site page: domain.com/blogs/our-blog-network <- only page in main blog.

  6. Yeah, that's usually what people do.

    Or you can make a static front page so domain.com/blogs/ lists all your blogs.

    http://wordpress.org/extend/plugins/multi-site-site-list-shortcode/ may help

Topic Closed

This topic has been closed to new replies.

About this Topic