Redirect loop with fresh subdirectory multisite install

Hi, I just set up a fresh multisite install at http://www.example.com. The frontend is working fine, as is the Dashboard for the first site (which is just at http://www.example.com). However, when I created my first network site, while the front end works (www.example.com/first), trying to visit the dashboard (www.example.com/first/wp-admin) gives me a redirect loop error.

I’ve looked at many of the existing threads, both here and elsewhere, but haven’t come up with anything.

I’ve tried various .htaccess files, the one that comes up most recently is attached. Here’s the relevant portion of my wp-config.php:

define('WP_HOME','www.example.com');
define('WP_SITEURL',WP_HOME);

/* Multisite */
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', WP_HOME);
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Any help would be appreciated. Thanks!

  • Predrag Dubajic
    • Support

    Hey Dan,

    Hope you’re doing well today :slight_smile:

    This is most likely .htaccess issue, and even though I don’t see any major differences in the one attached can you try with this one that’s taken directly from wp.org

    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]

    Let us know if that makes any difference.

    Best regards,

    Predrag

  • Dan
    • WPMU DEV Initiate

    Turns out it WAS an .htaccess problem — in that the guy administering the server disabled .htaccess entirely and didn’t bother to tell me (in the name of “security and performance”:wink:. Thanks for your help.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.