【问题标题】:Wordpress 500 internal server error after changing permalink更改永久链接后出现 Wordpress 500 内部服务器错误
【发布时间】:2016-07-08 08:34:10
【问题描述】:

更改 wordpress 永久链接后出现 500 个内部服务器错误。除了普通选项之外,所有选项都给我同样的错误。

错误仅在帖子页面上。很多人说wordpress不允许编辑.htaccess文件。但是,我有一个插件可以成功编辑我的 .htaccess 文件。

另外两件事可能很重要,我使用代理来运行博客,这是 .htaccess 文件中的内容

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

# END WordPress

【问题讨论】:

  • 在对.htaccess进行更改之前,您是否检查过他们的manual
  • 查看您的错误日志。
  • 我没有更改 .htaccess 文件。此外,这不是我的情况,我希望博客已启动并设置自定义永久链接。
  • 这里是日志中的错误信息。 [Fri Jul 08 04:48:24.237062 2016] [core:error] [pid 2430] [client 46.101.144.77:36922] AH00124: 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., referer: http://6-cylinder.com/news/

标签: php wordpress .htaccess


【解决方案1】:

重命名您的 htaccess 文件,然后设置 permalinks plain 并保存设置它将创建新的 htaccess 文件,然后再次设置帖子名称 permalink 并保存设置

希望这对你有用

【讨论】:

  • 是的,它创建了一个新的 .httaccess 文件。但我仍然有同样的问题。
  • 服务器内部错误(错误500)通常是插件或主题功能冲突引起的,所以请尝试停用所有插件。如果这样可以解决问题,请分别重新激活每个,直到找到原因。如果这不能解决问题,请尝试切换到二十四主题以排除特定主题的问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-08-22
  • 1970-01-01
  • 2018-08-28
  • 1970-01-01
  • 2020-03-16
  • 1970-01-01
相关资源
最近更新 更多