WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Unique WP MU install in sub-directory of primary WP site (4 posts)

  1. demtnman
    Member
    Posted 1 year ago #

    My primary domain runs WP (domain.com). I want to install a unique WP install and configure it for MU network in a sub-directory (domain.com/blogs). I installed the WP in the /blogs folder, allowed MU config, but when I go the Network setup in Tools, it is telling me the server will be domain.com. Does this mean that if I follow through with the network setup, the MU install (domain.com/blogs) will point to domain.com? If so, how can I congifure to stay within domain.com/blogs and thus blogs set up in that network to be domain.com/blogs/blog1, domain.com/blogs/blog2, etc?

    Thanks in advance.

  2. 1) Are you 100% sure you're in domain.com/blogs/ when you edited the wp-0config to allow Multisite?

    2) Are you 100% sure you're at domain.com/blogs/wp-admin/

    3) Are there any rules in domain.com's .htaccess that would mess with that?

  3. demtnman
    Member
    Posted 1 year ago #

    This is the code in the wp-config.php file in /blogs directory:

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

    This is the code in the htaccess of domain.com main primary directory:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    And this is code in .htaccess of /blogs directory:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blogs/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blogs/index.php [L]
    </IfModule>
    
    # END WordPress

    And this is the test on Tools > Network Setup of domain.com/blogs/wp-admin:

    Sub-directory Install Because your install is in a directory, the sites in your WordPress network must use sub-directories.

    Server Address The internet address of your network will be domain.com.

    Thanks for help.

  4. demtnman
    Member
    Posted 1 year ago #

    I made the leap of faith and clicked to activate the configuration, which lead me to the next page, which had me add the final code to htaccessand wp-config. It appears to be all set. Thanks, sorry for trouble. Feel free to delete thread if desired.

Topic Closed

This topic has been closed to new replies.

About this Topic