我在 Apache 下的 Wordpress 中收到“请求超出了 10 个内部重定向的限制”

我在 Apache 下的 Wordpress 中收到“请求超出了 10 个内部重定向的限制”

我在 Wordpress 中添加了一篇文章,但当我尝试在浏览器中查看它时出现错误 500。

这是apache.conf中的配置:

    <VirtualHost *:80>
  ServerName new.comelody.com
  DocumentRoot /var/www/website/wordpress

  <Directory /var/www/website/wordpress>
         AllowOverride all
         Options -MultiViews
  </Directory>
</VirtualHost>

这是 Apache 的调试日志:

[Mon Sep 19 09:11:57 2016] [debug] core.c(3112): [client 31.168.149.202] r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] core.c(3118): [client 31.168.149.202] redirected from r->uri = /2016/09/19/a-good-article/
[Mon Sep 19 09:11:57 2016] [debug] mod_deflate.c(615): [client 31.168.149.202] Zlib: Compressed 620 to 380 : URL /test/index.php
[Mon Sep 19 09:11:57 2016] [debug] ssl_engine_io.c(1908): OpenSSL: I/O error, 5 bytes expected to read on BIO#b96cdc20 [mem: b96d3eab]
[Mon Sep 19 09:11:57 2016] [info] [client 74.82.47.4] (70014)End of file found: SSL input filter read failed.
[Mon Sep 19 09:11:57 2016] [debug] ssl_engine_kernel.c(1884): OpenSSL: Write: SSL negotiation finished successfully
[Mon Sep 19 09:11:57 2016] [info] [client 74.82.47.4] Connection closed to child 6 with standard shutdown (server comelody.com:443)
[Mon Sep 19 09:12:06 2016] [error] [client 66.249.75.12] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

这里有什么问题?

谢谢你!

答案1

我的 .htaccess 文件中有一条规则

#RewriteRule . /test/index.php [L]

这就导致了问题。

相关内容