WordPress.org

Ready to get started?Download WordPress

Forums

Rewrite rules so all network sites appear in root instead of subfolders (5 posts)

  1. sphill201
    Member
    Posted 3 years ago #

    I am working on a site in which the WP install is in a subfolder called /blog/, so that our client can only edit the WP sites and not the homepage and other static content in the root directory of the site.

    They also need an editable section for news items, so I established a network with the Blog site being the primary installation, and a separate News site. By default, the news section becomes /blog/news.

    However, I want the news site to exist in /news, not /blog/news. I have tried editing the site path in network admin, but I just get a 404 when I navigate to /news. Is this something that needs to be done as a rewrite rule, or is there a better way to manage this setup? It is a fresh install so I don't mind re-installing if necessary.

    Thanks,
    Sean

  2. If WordPress is installed in the folder /blog then all URLs will have the /blog folder in them. That's just how MultiSite is.

    Reinstall it in the root of your site and you're good to go.

  3. sphill201
    Member
    Posted 3 years ago #

    Thanks, I've reinstalled WP into the root directory. However, now the blog becomes the homepage of the site. We want the blog to exist in a sub-section of the site, namely "/our-thinking/blog". The other WP sites might be in different sections though.

    I can't create a site called "blog" since it's a reserved word, and I can't fake it by creating a site with a slash in the URL. Is this even possible in MultiSite or should we be considering multiple WP installations throughout the site? It doesn't seem like the URLs are flexible enough for what we need.

  4. Even if WordPress runs the 'homepage' of the site, you are under no obligation to use it as a blog :) Make a static home page and you're fine.

    We want the blog to exist in a sub-section of the site, namely "/our-thinking/blog"

    You COULD make a site called /our-thinking/ and then make the permalinks of that site as /blog/<whatever>

  5. sphill201
    Member
    Posted 3 years ago #

    Good point. Thanks for the suggestions, those seem to be working for the time being.

Topic Closed

This topic has been closed to new replies.

About this Topic