且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Wordpress 多站点:子站点 wp-admin “err_too_many_redirects"

更新时间:2023-09-12 11:48:04

(我不相信给定的解决方案);)

(I don't take credit for the given solution) ;)

如果您对此仍有问题,请尝试使用 .htaccess 的解决方案.

If you still have an issue with this try the solution with .htaccess.

通过 WP Network 安装更改给定的 .htaccess 模板:

Change given .htaccess template by WP Network installation:

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).*) featured/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ featured/$2 [L]
RewriteRule . index.php [L]

为此:

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]

解决我和你类似的问题.

Works with mine similar problem to yours.

原始解决方案发布在这里link

Original solution was posted here link