Issues with MU:Subdirectories (admin redirect loop)
-
Fresh install of WordPress 3.5 and MultiSite.
The install is located directly in the ‘web’ folder, AKA the root.
Chose subdirectories during the install, added the following lines of code to .htaccess and wp-config respectively.
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]
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'localhost'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
Using these settings allows me to access the main site and it’s wp-admin. It allows me to access the subdirectory (which appears without styling mind you) but when I try to access the wp-admin for subdir, I get the admin redirect loop.
I double checked, and I’m pretty sure mod_rewrite is enabled (I tryed a simple redirect rule in the .htaccess)
For reference,
lucavacca.me
lucavacca.me/projects/
Thanks for any help on the subject, first time using MU.
- The topic ‘Issues with MU:Subdirectories (admin redirect loop)’ is closed to new replies.