dowjgrm6787 2015-11-20 19:44
浏览 23
已采纳

每周500个内部服务器错误[重复]

This question already has an answer here:

One of my websites built on wordpress have 500 internal server error after every 2-3 weeks, and I have to delete .htaccess every time to fix this and a new htaccess appears after that.

The strange thing about the problem is the htaccess that appears after deletion is no different from the one which is deleted.

This is a bad version of htaccess which I have deleted to get it working.

# BEGIN WordPres
<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
</div>
  • 写回答

1条回答 默认 最新

  • dongqijuan3786 2015-11-21 01:32
    关注

    It is obvious to me that whenever you get server error code 500, the file permissions of .htaccess have changed. When .htaccess is created again it has new default permissions. So you must verify & investigate what/who is changing .htaccess permissions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 求螺旋焊缝的图像处理
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了