简体   繁体   English

更改Wordpress文件中的.htaccess会导致内部服务器错误

[英]Changing .htaccess in wordpress file gives an internal server error

So i'm working with the wpmudev snapshot plugin which gives an 'max_execution_time' warning (30 is to low), when I update this to 180 by adding 所以我正在使用wpmudev快照插件,当我通过添加将其更新为180时,它会发出“ max_execution_time”警告(30变为低)

php_value max_execution_time 180

to the .htaccess file (wp root) my site gives an internal server error. 到.htaccess文件(wp根目录),我的站点出现内部服务器错误。 Is there an reason why this happens? 为什么会发生这种情况? And how can I fix this? 我该如何解决呢?

your code is correct and refer below scenario, 您的代码正确无误,请参考以下情形,

  1. Check with your error log and if it is a PHP error try to troubleshoot that. 检查您的错误日志,如果它是PHP错误,请尝试解决该问题。

  2. what is your server engine, because Apache engine only have .htaccess file others like nginx not support .htaccess file 您的服务器引擎是什么,因为Apache引擎仅具有.htaccess文件,其他类似nginx的文件不支持.htaccess文件

  3. If not got solution check with your hosting before that make sure your site not have an issue. 如果没有解决方案,请先与您的主机进行检查,确保您的网站没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM