Support » Multisite » Permalinks trouble after installing multisite

Permalinks trouble after installing multisite

  • Okay, I have a blog at domain/blog and everything was great.

    I then installed multisite and have additional WP installs at domain/blog/news/ and domain/blog/members/ (Thus, the two new installs are one level past my initial one.)

    Now something is hash in my permalinks. WP thinks it’s supposed to be saving my posts in the base blog as domain/blog/blog/etc

    Here’s my wp-config info for multisite:

    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/blog/';
    define( 'DOMAIN_CURRENT_SITE', 'domain name here' );
    define( 'PATH_CURRENT_SITE', '/blog/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Can anyone tell me what I’ve got wrong? Right now, the only way I can avoid the /blog/blog URL is by choosing default permalink (domain/blog/?=p123), which I obviously would prefer to avoid.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The URLs should be domain.com/blog/<sitename>

    If you install WP in the folder BLOG, then that folder name is going to be in every subsite you make.

    And yes, your BASE blog will have the urls be domain.com/blog/blog/postname :/ That’s intended to prevent conflicts with other subsites.

    Thanks for the info.

    Can’t say it makes sense.

    I don’t see how there could be a conflict, since the others would have /blog/members/ and /blog/news/ in the permalink. And anyway, the default doesn’t have /blog/blog/, it just has /blog/?p=123, so if there were going to be a conflict with the pretty links, there would be a conflict there much more easily (numbers get duplicated a lot more readily than post names).

    But if this is the case, I have to make a decision between two forms of ugly. :\

    Just to be clear: this was a site before I went multisite. domain/blog resolves to the front page of this blog. Default permalinks don’t go another folder level up. So why should other forms of permalinks?

    Because you’re using Multisite with subfolders.

    See, your ‘base’ location is domain.com/blog

    That means all your subsites become domain.com/blog/sitename

    Now, that ALSO means any pages you make, not posts, pages, on your main blog are domain.com/blog/pagename right? ANd if you wanted to use postname for your POSTS … See the possibility for conflicts? In order to prevent domain.com/blog/postname from clashing with domain.com/blog/sitename, WP slaps an extra, HARD CODED, blog in there.

    Yes, it’s annoying. Yes, it’s frustrating. No, there’s no easy way to remove it. If you go in via network settings, and edit the site directly, you CAN remove it, but if you ever save the permalinks again on the main site, they show back up :/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks trouble after installing multisite’ is closed to new replies.