【发布时间】:2017-06-01 19:04:18
【问题描述】:
升级我的 Ubuntu 服务器后,我尝试打开我的 wordpress 网站,但我的 error.log 中出现了这个错误
AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。如有必要,使用“LimitInternalRecursion”增加限制。使用“LogLevel debug”获取回溯。
打开网站时收到消息。
<?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' );
我在下面尝试了这 2 个链接,但我的 .htaccess 不同,所以没有用。
Apache 2.4 - Request exceeded the limit of 10 internal redirects due to probable configuration error
Request exceeded the limit of 10 internal redirects due to probable configuration error.?
.htaccess /root
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
.htaccess /blog
# 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 WordPres
阿帕奇:
Server version: Apache/2.4.18 (Ubuntu)
有人知道如何解决这个问题吗?
谢谢。
【问题讨论】:
-
也许,您必须将
.htaccess移至/blog。 -
你好,这个.htaccess在/blog里面
-
您是否移动了您的 wordpress 安装?我不明白只是升级您的服务器会导致错误吗?你还改变了什么?
-
我今天升级了所有东西,新的ubuntu版本,sql,mysql,apache,所有东西,我只是按ok ok ok :) 哈哈哈
-
对于通过 Google 来到这里的人,
AH00124: Request exceeded the limit of 10 internal redirects due to probable的解决方案可能在这里 stackoverflow.com/a/48022336/279564
标签: wordpress apache .htaccess mod-rewrite