title: Deploying codeigniter on heroku works fine on localhost but path issues on heroku
body: <p>I am deploying a simple site on heroku that I make in codeigniter. It works perfectly fine on localhost (xampp), but not on heroku. On heroku it requires index.php and says that unable to load the model 'Core' and it is case sensitive too. What should I do?</p>
  
  <p>When I run</p>
  
  <blockquote>
    <p><a href="http://localhost/herokuroot/" rel="nofollow noreferrer">http://localhost/herokuroot/</a></p>
  </blockquote>
  
  <p>My page loads but when I run</p>
  
  <blockquote>
    <p><a href="https://bugdevroots.herokuapp.com/" rel="nofollow noreferrer">https://bugdevroots.herokuapp.com/</a></p>
  </blockquote>
  
  <p>It says</p>
  
  <pre><code>404 Page Not Found
  
  The page you requested was not found.
  </code></pre>
  
  <p>but it works for</p>
  
  <blockquote>
    <p><a href="https://bugdevroots.herokuapp.com/index.php/Welcome" rel="nofollow noreferrer">https://bugdevroots.herokuapp.com/index.php/Welcome</a></p>
  </blockquote>
  
  <p>and my default controller is <code>welcome</code></p>
  
  <p>I have included this in my <code>.htaccess</code></p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  &lt;/IfModule&gt;
  &lt;IfModule !mod_rewrite.c&gt;
          ErrorDocument 404 index.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And in my config.php</p>
  
  <pre><code>$config['base_url'] = '';
  $config['index_page'] = '';
  $config['uri_protocol'] = 'AUTO';
  </code></pre>