PHP codeigniter的500内部错误

时间:2016-05-10 22:38:24

标签: php apache .htaccess codeigniter mod-rewrite

我是php codeigniter的新手,我需要上传100 MB大小的文件。所以从互联网上我找到了编辑我的php.ini文件的方法。但是在codeigniter中,php.ini文件不适用于子文件夹。我需要在任何地方使用它,所以我写了超级用户访问.htaccess文件,但我得到500 Inter服务器错误。

RewriteEngine on RewriteBase / RewriteCond $1 !^(index.php|resources|robots.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] suPHP_ConfigPath /home/edukeepi/public_html/php.ini

  

为什么我收到此错误?

1 个答案:

答案 0 :(得分:0)

请尝试上传./resources/文件夹。和你的.htaccess一样,你允许'resources'文件夹写文件(即上传)