Wordpress AH00124:由于可能的原因,请求超出了10个内部重定向的限制

Wordpress AH00124:由于可能的原因,请求超出了10个内部重定向的限制,wordpress,apache,.htaccess,mod-rewrite,Wordpress,Apache,.htaccess,Mod Rewrite,在升级我的Ubuntu服务器后,我尝试打开我的wordpress网站,我的error.log中出现了这个错误 AH00124:由于可能的配置错误,请求超出了10个内部重定向的限制。如有必要,使用“LimitInternalRecursion”增加限制。使用“日志级别调试”获取回溯跟踪。 当我打开网站时收到一条消息 <?php /** * Front to the WordPress application. This file doesn't do anything, but loads

在升级我的Ubuntu服务器后,我尝试打开我的wordpress网站,我的error.log中出现了这个错误

AH00124:由于可能的配置错误,请求超出了10个内部重定向的限制。如有必要,使用“LimitInternalRecursion”增加限制。使用“日志级别调试”获取回溯跟踪。

当我打开网站时收到一条消息

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
有人知道怎么解决这个问题吗


谢谢。

尝试增加限制,但我想这是一个循环。以下文章将引导您进入正确的方向:

尝试使用两个不同的.htaccess。在根文件夹中:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

# END WordPress
#开始WordPress
重新启动发动机
重写库/博客/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/blog/index.php[L]
#结束WordPress
。。。或者确保重定向到子文件夹

在子文件夹中:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
检查您的永久链接设置主页url和博客url。这也可能导致无休止的循环。更新你的永久链接和搜索wp_选项,以便为你的博客插入正确的url/域


这也可能是Ubuntu特定的配置错误,试图提高限制或检查缺少的库,如mod_rewrite。

不是apache的php模块,apache将php解释为文本

为了解决这个问题,我做了:

apt-get install libapache2-mod-php

/etc/init.d/apache2 restart

apt-get install php7.0-mysql 

/etc/init.d/apache2 restart

从以下代码行更新.htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress```

重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress```

我遇到了这个错误消息的问题,我解决了它

我从MacOS Catalina升级到Big Sur时遇到了这个问题

@vineetkumar和@Blackam让我走上了正确的道路

以下是我在/private/etc/apache2/extra/httpd vhosts.conf中所做的修改:


服务器名vhost\u用于\u https
服务器别名本地主机
-DocumentRoot“/图书馆/WebServer/Documents/anais\u网站”
+DocumentRoot“/库/Web服务器/文档”
斯伦金安
SSLCertificateFile/private/etc/apache2/ssl/certificate.crt
SSLCertificateKeyFile/private/etc/apache2/ssl/privateKey.key
-  
+  
选项+索引+包含+跟随符号链接+多视图
允许超越所有
要求本地
要求ip 192.168.1.71

在共享主机上,无法访问配置文件,我可以通过在wp admin后端重新保存永久链接来解决这个问题。

也许,您必须将
.htaccess
移动到
/blog
。您好,这个.htaccess它在/blog中。您是否移动了wordpress安装?我看不出升级服务器怎么会导致错误?你还改变了什么?我今天升级了所有东西,新的ubuntu版本,sql,mysql,apache,所有东西,我只是按ok:)哈哈哈对于那些通过谷歌来到这里的人来说,
AH00124:Request的解决方案超过了10个内部重定向的限制,因为可能的
在这里,重定向发生在哪里?从wordpress内部还是服务器中?尝试添加echo'hello';死亡在wp-config.php中,检查是否已访问?没有发生任何情况,网站工作正常,在我更新apache和Ubuntu后,这将启动。wp-config.php从未访问过?我是否应该将其放在正确的内部对不起,没有时间聊天。你必须检查是否接触过WordPress。在你发现后,我可以通过评论继续帮助你。你是如何发现问题的?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
apt-get install libapache2-mod-php

/etc/init.d/apache2 restart

apt-get install php7.0-mysql 

/etc/init.d/apache2 restart
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress```
 <VirtualHost *:443>
   ServerName vhost_for_https
   ServerAlias localhost
-  DocumentRoot "/Library/WebServer/Documents/anais_website"
+  DocumentRoot "/Library/WebServer/Documents"
   SSLEngine on
   SSLCertificateFile /private/etc/apache2/ssl/certificate.crt
   SSLCertificateKeyFile /private/etc/apache2/ssl/privateKey.key
-  <Directory "/Library/WebServer/Documents/anais_website">
+  <Directory "/Library/WebServer/Documents">
     Options +Indexes +Includes +FollowSymLinks +MultiViews
     AllowOverride All
     Require local
     Require ip 192.168.1.71
  </Directory>
</VirtualHost>