• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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.

    Thread Starter sphill201

    (@sphill201)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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>

    Thread Starter sphill201

    (@sphill201)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rewrite rules so all network sites appear in root instead of subfolders’ is closed to new replies.