CodeIgniter Hosting 500错误

时间:2017-03-28 16:02:03

标签: codeigniter codeigniter-3 internal-server-error

我在我的localhost服务器上使用CodeIgniter在domian www.abc.com/beta上传了我的项目。一切正常,但当我在服务器上传它时,我收到500服务器错误。

我的.htacess代码是

RewriteEngine On
RewriteBase http://www.example.com/beta/
RewriteCond %{REQUEST_URI} ^system.*
RewriteCond $1 !^(index\.php|images|js|uploads|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

我的配置文件base_url

$config['base_url'] = 'http://www.example.com/beta/';

1 个答案:

答案 0 :(得分:0)

更改...

RewriteBase http://www.example.com/beta/

进入这个...

RewriteBase "/beta/"

请参阅:http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase