Vah*_*afi 5 php .htaccess codeigniter internal-server-error
我正在使用 codeigniter 框架,当我将它上传到主机时,它给了我 500 内部错误。
但是当我添加index.php到 时config.php,它起作用了。
我该怎么办?
在我的 .htaccess 我有这个:
RewriteEngine On
RewriteBase /ci-framework/
Run Code Online (Sandbox Code Playgroud)
而且当我/ci-framework/从 RewriteBase 的末尾清理时,它也不起作用。
非常感谢。
小智 7
您不需要index.php在config.php文件中添加。确保.htaccess文件中有以下行:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15744 次 |
| 最近记录: |