multisite running from subfolder
-
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
- The topic ‘multisite running from subfolder’ is closed to new replies.