Answer the question
In order to leave comments, you need to log in
Why does a circular redirect to Wordpress multisite occur when I enter the admin panel of subsites (Nginx server)?
Switched the site to multisite mode (subdirectory mode), when you try to enter the admin panel of a child site, a cyclic redirect occurs (ERR_TOO_MANY_REDIRECTS)
.htaccess code
RewriteEngine On
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]
Answer the question
In order to leave comments, you need to log in
Whoa, what .htaccess if you have Nginx? This file is used by the Apache server. Nginx has its own tips. See here .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question