dowjgrm6787 2015-11-20 11: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-20 17: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.

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部