The MU forums have moved to WordPress.org

Subdirectory signup problem (7 posts)

  1. cmcnabb
    Member
    Posted 15 years ago #

    I've got an issue that I need help with. The setup I've got is three blogs in their own subdirectories.

    http://foo.org/main/
    http://foo.org/blog1/
    http://foo.org/blog2/

    When trying to get to wp-signup.php (ie. http://foo.org/blog1/wp-signup.php) I end up in a loop redirect because of this code (in wp-signup.php ~line 20):

    if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
    	wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
    	die();
    }

    Initially the redirect happens because current blog is http://foo.org/blog1/ and current site is http://foo.org/. The second redirect happens because current blog is null (there isn't a blog at http://foo.org/).

    If I change the main blog to live at http://foo.org/ (which is preferable), the signup works properly, but then requests for posts on the main blog fail. For a post like http://foo.org/2008/06/06/foo-is-bar/ the code in wpmu-settings redirects to signup because there's no blog at http://foo.org/2008/

    Is there some setting I'm missing here?

  2. lunabyte
    Member
    Posted 15 years ago #

    So, you have 3 complete installs of MU then?

    Or are you trying to register new blogs under blogs already created in MU?

  3. cmcnabb
    Member
    Posted 15 years ago #

    1 install of MU with three blogs created under one site.

  4. lunabyte
    Member
    Posted 15 years ago #

    Then you're trying to do something which isn't correct.

    You don't create a couple blogs in MU, and then try to make blogs underneath those.

    All blogs will be located off of the site root.

  5. cmcnabb
    Member
    Posted 15 years ago #

    Please explain how it SHOULD be then, because it appears to me that I do have it that way. Namely the site root of http://foo.org/ with 3 blogs off of it and created with wpmu-admin. 3 blogs on one site... only signup redirects to the root which doesn't work.

  6. lunabyte
    Member
    Posted 15 years ago #

    Blog signup goes from the main blog, foo.tld not from the subblogs which were created.

    "foo.tld/wp-signup.php", not "foo.tld/blog1/wp-signup.php".

    Users will get: "foo.tld/username/", not "foo.tld/blog1/username/".

    That how it works.

  7. fritzdsouza
    Member
    Posted 15 years ago #

    hi cmcnabb

    with my little knowledge of mu installs so far
    if the blog exists
    say for example foo.org/blog1 then mu does show that blog
    if it does not and someone types the url foo.org/blog1 and if registrations are enabled by site admin it redirects the user to foo.org/wp-signup.php and asks the user that the blog is not created with that name and whether you would like to register one

    on mu every blog that is registered in subdirectory mode
    does get a url of the sort foo.org/blog1 if it is properly registered and activated

About this Topic

  • Started 15 years ago by cmcnabb
  • Latest reply from fritzdsouza