WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do you go from multisite subdomain to subdirectory> (8 posts)

  1. toddneufeld
    Member
    Posted 4 years ago #

    I'm running the latest 3.0 beta, and when I enabled the Network it only let me set up child sites as subdomains, not subdirectories. I do NOT want subdomains, and I can't figure out how to change it.

    Can anyone explain how to me?

    TIA,

    -Todd

  2. greatdanemaniac
    Member
    Posted 4 years ago #

    From what I've heard, you have to clear or drop your table in your mySQL database and re-install wordpress... Then you have to enable multisites again, and choose subdirectories instead of sub-domains.

    [signature moderated Please read the Forum Rules]

  3. There's a check in there to see if your setup is more than a month old, and if so, to NOT let you set up subdirs.

    Why? Because right now in a subdir setup, it adds /blog/ to the permalinks. Until that gets fixed, or some alternative is figured out (it;s in there to prevent permalink collisions between blogs and pages off the main blog) then someone came up with this idea.

    Now that you know the whys ;) you can disable the check in the code long enough to install it.

    (except I can't remember where it is right now... probably in the network setup area)

  4. toddneufeld
    Member
    Posted 4 years ago #

    That actually makes sense, but I wish I still had a choice. I currently use /blog/ for one of my pages, something I will have to change asap.

    Can I un-enable my Network and re-enable it after disabling that check? Do I do that by removing this line:
    define('WP_ALLOW_MULTISITE', true);

    restarting, and then putting it back in?

    Do you know what file would have the "more than one month old" check?

  5. toddneufeld
    Member
    Posted 4 years ago #

    I tried un-enabling my network, and restarting, but the Network installation detected the previous network.

    Also, I commented out what I though was the code that checked the date of the blog in wp-admin/network.php, but it made the network enabling hang.

    So it looks like I have two problems that needs a guru's help:

    1) which code in network.php can should comment out to let me have child sites in subdirectories?

    2) How can I re-do my network enabling?

    Whew, this WP 3.0 is really a big upgrade!

  6. The previous network detection is because of the extra *database* tables it added.

    "Also, I commented out what I though was the code that checked the date of the blog in wp-admin/network.php, but it made the network enabling hang."

    I think that was the area, just have to comment it out correctly. ;)

  7. toddneufeld
    Member
    Posted 4 years ago #

    I think I have a work-a-round to trick WordPress.

    It looked like the code checked for the earliest post, and if that was a month old you had to do subdomains. What if I go in and change the post-dates of my posts?

  8. VanessaPridgen
    Member
    Posted 4 years ago #

    I had previous network detection too even after dropping all of my databases entirely before trying a reinstall.

Topic Closed

This topic has been closed to new replies.

About this Topic