我最近将我的WordPress更新到了5.5,我遇到了;重定向错误太多“;当我使用带有页面id的URL时/?p=1234
(之前它在更新之前工作)。它不断重定向到/1
不管职位id号
我正在使用多站点,并且在永久链接设置中使用/%postname%/
正在检查重定向我得到以下结果:
?p=1234
301 Moved Permanently
1
301 Moved Permanently
1
301 Moved Permanently
1
我的
.htaccess
:
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
#add a trailing slash
RewriteEngine On
RewriteCond %{REQUEST_URI} /+[^\\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /index.php/$1 [L,QSA]
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]
</IfModule>
# END WordPress
有关如何进一步检查或解决此问题的帮助?