WordPress.org

Forums

Cant find Line of code for sub directories (8 posts)

  1. C.Flores47
    Member
    Posted 1 year ago #

    Installed Multisite, added the line to get "Network Setup" section.

    Now Im trying to add a Sub-Directory but I dont have the option, so the tutorial says I need to change this line of code:
    define( 'SUBDOMAIN_INSTALL', true );

    Into this: define( 'SUBDOMAIN_INSTALL', false );

    The problem is that I cannot find that line of code. It's not there. What should I do/What did I do wrong?

  2. dgilmour
    Member
    Posted 1 year ago #

    If it's not in your wp-config.php, you'll need to add it, regardless of why it's not there.
    http://codex.wordpress.org/Create_A_Network

  3. C.Flores47
    Member
    Posted 1 year ago #

    Hmm, that leads me to the other question I forgot. Initially I did put the line of code in and I tried to put it in after the SALTS but it messed up the whole thing so I had to go back and delete it. Where would I put it?

  4. After define('WP_DEBUG', false); is normally fine.

  5. C.Flores47
    Member
    Posted 1 year ago #

    I know the Codex says

    "Add the following lines to wp-config.php anywhere above /* That’s all, stop editing! Happy blogging. */"

    But I've tried several places now and I still keep getting this when I go back into WP "No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help"

  6. Where is define('WP_ALLOW_MULTISITE', true); ?

  7. C.Flores47
    Member
    Posted 1 year ago #

    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);
    /* That's all, stop editing! Happy blogging. */

  8. Did you go to Tools -> Network and actually click the button to set up the network? On that screen, they give you about six lines of code to put in your config file.

    You have missed a pile of important stuff.

    http://wpebooks.com/2010/09/how-to-enable-multisite-in-wordpress/

    See if this guide explains it better.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.