【发布时间】:2020-08-14 03:46:36
【问题描述】:
我的代码在 localhost 中运行良好,但是当我将其上传到域时出现错误 500,有时出现空白页 请有任何建议! 我的 htaccess:
enter code here
重写引擎开启
RewriteCond $1 !^(index.php|images|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
重写规则 ^(.*)$ index.php/$1 [L]
【问题讨论】:
-
检查错误日志的内容 - 当您遇到 500 内部服务器错误时,这始终是您要做的第一件事。
标签: php .htaccess web server localhost