I converted one of my sites to a multisite install, and things have been going well. However, I have a little bug that drives me bonkers. It’s very similar to a common problem many people have, yet I’ve read as many forums and posts I can find and nothing solves it. Most posts here on WPMU never give the final solution because people move to private messaging and never come back with final info on what worked or didn’t. So, I’ll walk through my current situation:
I set the multisite to be a subdirectory install:
define( 'WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'themajestysmen.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
Admittedly I forced this to be subdirectory even though the wp install was old and wp didn’t want me to do it. So, I then changed the .htaccess file to the recommended settings:
# BEGIN WordPress
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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
# END WordPress
However, when it’s set like this, I can move between the Super Admin network screen and the primary site easily, but neither myself as the Super Admin nor any of the Admins can log in to their network sites. We get the continual redirect loop on the login screen ending in “reauth=1”. So what I have done after adding a new site is return to the wp-config and just place apostrophes around the “false” word like so: define(‘SUBDOMAIN_INSTALL’, ‘false’:wink:; …then for some reason I don’t get the login loop. However, I then can’t add a new site, of course.
So this is a bigger issue now that I’m wanting to use the domain mapping plugin and let people create sites and map domains. I can’t be modifying the wp-config file constantly for each new site creation.
As an added bonus, I have the same setup on a different site and it’s working great. Here are a few differences I’m aware of:
– Cloudflare on this site. Any way it could cause this even when I pause it?
– Jetpack and Akismet active on this site. Could their security stuff cause this?
Also, if I do all of this in a Private window, everything works seemlessly… which means, what? Cookies? Caches?
Please help! :slight_smile: