Support » Networking WordPress » Multisite WP Admin redirect loop – subsites only

  • Castor

    (@castoruk)


    Hi all

    Experiencing a problem with a redirect loop when accessing WP Admin.

    But it’s only affecting subsites, not the root site or network admin.

    Plus, the redirect only affects the /wp-admin/ folder. Going directly to /wp-admin/index.php (and all other files in the folder) work fine.

    The network is setup with subsites using their own domains, via domain name mapping.

    HTACCESS has the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    I’ve checked the permissions on the wp-admin folder and they appear to be set correctly. There are no additional htaccess files in the wp-admin folder either.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you follow these instructions?

    Create A Network

    Or did you copy the htaccess rules from https://wordpress.org/support/article/htaccess/ instead?

    Asking because the first would be the “correct” way to go, since the .htaccess rules might vary, depending on the install.

    If this is a fresh install and you followed the second link, I would suggest re-attempting by following the first link instead.

    Thread Starter Castor

    (@castoruk)

    Hi @bedas

    I copied the rules from the Network Setup screen in the Network Admin site directly. Not from https://wordpress.org/support/article/htaccess/.

    There was one odd thing I found.

    The network has been setup for several years and had worked fine. When I discovered this problem, I found that the htaccess file had somehow revered back to a standard WP setup. How the subsites were still working this way I’ve no idea.

    I updated the htaccess file with the ‘correct’ rules Network Setup screen hoping it would fix the issue. But obviously not.

    Anywhere else I can look?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.