【发布时间】:2018-06-19 09:56:41
【问题描述】:
我在我的 1and1 Web 服务器上安装了一个 php 脚本,但它显示 500 内部服务器错误,但是当 index.php 包含在 url 中时,它会加载正常的 index.php 主页。 网址是http://my.gsix.com.ng/,但是当它以这种方式输入http://my.gsix.com.ng/index.php时,它会加载正常的主页。
我还发现,当我第一次在我的本地主机上安装它时,它加载得很好。
编辑:
我的.htaccess 文件
RewriteCond $1 !^(index.php|assets|images|js|css|uploads|favicon.png|install|sitemap.xml|robots.txt)
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
【问题讨论】:
-
然后向我们展示您的
.htaccess文件可能是个好主意 -
RewriteCond $1 !^(index.php|assets|images|js|css|uploads|favicon.png|install|sitemap.xml|robots.txt) RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteRule ^(.*)$ index.php?/$1 [L]
-
那么您认为 .htaccess 有什么问题?