• Hi,

    I knoe this forum is full of this question, but really couldn’t find a legitimate answer.

    So I have a working WP installation in a subfolder wp. I sertup everything, so that WP appears on domain.com.

    I then activated multisite with subfolders and made all necessary changes to .htaccess and wp-config. It still seemed to run all fine.
    htacces:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /wp/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ /wp/$2 [L]
    RewriteRule . index.php [L]

    config:

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'noesi.net');
    //$base = '/wp/'
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    1- My main blog appears on domain.com
    2- admin for main site runs on domain.com/wp/wp-admin
    3- even network runs on domain.com/wp/wp-admin/network/
    but when I add a new site, it refers to domain.com/wp-admin/network, and therefor fails. Allmy admin bar links to the network are missing the /wp/ folder.

    So I tried around a few things, and noticed if I change in my config file
    define('PATH_CURRENT_SITE', '/');
    to
    define('PATH_CURRENT_SITE', '/wp/');
    the paths to my network admin on rollover are correct, but then I get my redirect loop warning.

    Please please can someone for once really tell me the solution to this?

    thanks
    S

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    but when I add a new site, it refers to domain.com/wp-admin/network, and therefor fails. Allmy admin bar links to the network are missing the /wp/ folder.

    Is that on the subsite only? So domain.com/sitename/ works, but it points to domain.com/sitename/wp-admin ?

    Thread Starter sortofme

    (@sortofme)

    I can’t create one. I get to
    /wp/wp-admin/network/site-new.php
    by putting the /wp/ into the URL manually. I can even navigate around my dashboard once I am on /wp/
    but clicking on ‘Add Site’
    it directs to
    /wp-admin/network/site-new.php?action=add-site
    without /wp/.

    I actuallyjust realised that links to subpages on my mainblog also don’t work…

    here is a sample link.
    https://noesi.net

    Thread Starter sortofme

    (@sortofme)

    correction. subpages from my main blog do work.
    It’s just that all network related links in my admin bar miss the /wp/, and add siteetc are therefore not functional.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Put the $base back into your wp-config and change your .htaccess to this:

    RewriteEngine On
    RewriteBase /wp/
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    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]
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘multisite running from subfolder’ is closed to new replies.