Support » Networking WordPress » Multi site root site installed on subdomain, with child sites as subdirectories

  • Hi.

    I have a WordPress multi site installed at dev.example.com, and network enabled, using subdirectories.

    I have the following in my .htaccess:

    # begin WordPress
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # end WordPress

    Previously this code was missing, but adding it did not resolve the problem.

    I have the following in my wp-config.php:

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'dev.example.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    If I am logged into dev.example.com/wp-admin, and then visit dev.example.com/site1, I lose the horizontal admin navigation bar at top of the page, and when I revisit dev.example.com/wp-admin I am forced to log in again.

    I checked Chrome’s cookies, and there is no cookie for dev.example.com/site1.

    I can log into other multi site networks fine.

    Help really appreciated.

  • The topic ‘Multi site root site installed on subdomain, with child sites as subdirectories’ is closed to new replies.