• I used to do WordPress multisite and I rememer then all my blogs user to be under blog directory, like this:

    mydomain.com/blog/my-second-blog-name/
    mydomain.com/blog/my-third-blog-name/
    and so on.

    But now that I created network for my new site, it seems that this doesn’t happen anymore. Can I somehow still get the blogs to be created under blog directory? And main site/blog would be at mydomain.com

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Bet Hannon

    (@bethannon1)

    When you created the new network, did you set it up to be a SUBDIRECTORY type?

    (You might want to check the instructions here: https://codex.www.ads-software.com/Create_A_Network)

    I only run subdomain type networks, but I think there may be a way to add in the “blog” slug in the network settings?

    Or, have you experimented to see what happens when you add a new site with the slug already in place? that is, put in “blog/new-site-name” when you create a new site.

    Thread Starter makoun

    (@makoun)

    Yes, I’m using subdirectory type as sites do work in subdirecotries now (mydomain.com/my-blog-name works perfectly). But the thing is I want the blogs to have the blog suffix in url (mydomain.com/blog/my-blog-name/) which doesn’t work and i don’t see any option in network settings.

    If I add the slug to already existing blog, then blog gives 404 (even after re saving permalink settings).

    Moderator Bet Hannon

    (@bethannon1)

    You could probably use .htaccess rules to rewrite your urls from mydomain.com to mydomain.com/blog. I’m not any help with that unfortunately.

    Can you post the current version of your htaccess file, and maybe someone can suggest a rewrite rule for you?

    Thread Starter makoun

    (@makoun)

    I don’t have htaccess as I’m using nginx on server. But all settings are default what wordpress ask to set as I have been following the Creating the network inscrutions.

    Moderator Bet Hannon

    (@bethannon1)

    Did you try creating a new site and in the box manually entering “blog” along with your new site? Enter “blog/my-new-site.com”. Will it let you do that?

    You might also find some help here:
    https://codex.www.ads-software.com/Nginx#WordPress_Multisite_Subdirectory_rules

    Sorry, I’m not much help with nginx either!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Network in subfolders’ is closed to new replies.