我在codeigniter中部署了一個簡單的heroku網站。它在localhost(xampp)上工作得很好,但不在heroku上。在heroku上它需要index.php,並且說無法加載模型'Core',並且它也是區分大小寫的。我該怎麼辦?在heroku上部署codeigniter在localhost上正常工作,但在heroku上路徑問題
當我運行
我的頁面加載,但是當我運行
它說
404 Page Not Found
The page you requested was not found.
,但它適用於
和我的默認控制器是welcome
我在.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
列入本
在我的config.php
$config['base_url'] = '';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';