title: 000webhost and codeigniter
body: <p>Im trying to use codeigniter in a shared server at 000webhost. I uploaded the content of the pack and if I enter</p>
  
  <p><a href="http://groceriesapi.000webhostapp.com/API/index.php/welcome/" rel="nofollow noreferrer">http://groceriesapi.000webhostapp.com/API/index.php/welcome/</a></p>
  
  <p>it does indeed work. But if I visit:</p>
  
  <p><a href="http://groceriesapi.000webhostapp.com/API/welcome/" rel="nofollow noreferrer">http://groceriesapi.000webhostapp.com/API/welcome/</a></p>
  
  <p>you get a 404.</p>
  
  <p>I read in the internet that one should solve this issue with .htaccess file. First off, I have two of them in my folder structure. This is how it looks like:</p>
  
  <pre><code>public_htm
      application
         plenty of things
         .htaccess
      other stuff
      .htaccess
  </code></pre>
  
  <p>I edit the outer .htacces, the one at public_html to look like this:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>and now when visiting the simplified URL (<a href="http://groceriesapi.000webhostapp.com/API/welcome/" rel="nofollow noreferrer">http://groceriesapi.000webhostapp.com/API/welcome/</a>) I get a 500 Internal server error! </p>
  
  <p>Any clue ??? </p>
  
  <p>PS: I would not care about the index.php in the middle of the URL but whenever I get an error message the whole codeigniter blows up and I don't know what went wrong .. and that's a problem :( </p>